2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.60.
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 ## --------------------- ##
13 # Be Bourne compatible
14 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
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+"$@"}'='"$@"'
22 case `(set -o) 2>/dev/null` in *posix*) set -o posix;; esac
24 BIN_SH=xpg4; export BIN_SH # for Tru64
25 DUALCASE=1; export DUALCASE # for MKS sh
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
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
41 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
49 # Support unset when possible.
50 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
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.)
66 # Find who we are. Look in the path if we contain no directory separator.
68 *[\\/]* ) as_myself=$0 ;;
69 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
73 test -z "$as_dir" && as_dir=.
74 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
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
85 if test ! -f "$as_myself"; then
86 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
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
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 \
104 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
105 eval $as_var=C; export $as_var
107 ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
111 # Required to use basename.
112 if expr a : '\(a\)' >/dev/null 2>&1 &&
113 test "X`expr 00001 : '.*\(...\)'`" = X001; then
119 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
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 ||
132 sed '/^.*\/\([^/][^/]*\)\/*$/{
150 if test "x$CONFIG_SHELL" = x; then
151 if (eval ":") 2>/dev/null; then
157 if test $as_have_required = yes && (eval ":
167 as_func_ret_success () {
170 as_func_ret_failure () {
175 if as_func_success; then
179 echo as_func_success failed.
182 if as_func_failure; then
184 echo as_func_failure succeeded.
187 if as_func_ret_success; then
191 echo as_func_ret_success failed.
194 if as_func_ret_failure; then
196 echo as_func_ret_failure succeeded.
199 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
203 echo positional parameters were not saved.
206 test \$exitcode = 0) || { (exit 1); exit 1; }
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
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
221 test -z "$as_dir" && as_dir=.
224 for as_base in sh bash ksh sh5; do
225 as_candidate_shells="$as_candidate_shells $as_dir/$as_base"
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
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+"$@"}'='"$@"'
245 case `(set -o) 2>/dev/null` in *posix*) set -o posix;; esac
247 BIN_SH=xpg4; export BIN_SH # for Tru64
248 DUALCASE=1; export DUALCASE # for MKS sh
253 CONFIG_SHELL=$as_shell
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
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+"$@"}'='"$@"'
265 case `(set -o) 2>/dev/null` in *posix*) set -o posix;; esac
267 BIN_SH=xpg4; export BIN_SH # for Tru64
268 DUALCASE=1; export DUALCASE # for MKS sh
280 as_func_ret_success () {
283 as_func_ret_failure () {
288 if as_func_success; then
292 echo as_func_success failed.
295 if as_func_failure; then
297 echo as_func_failure succeeded.
300 if as_func_ret_success; then
304 echo as_func_ret_success failed.
307 if as_func_ret_failure; then
309 echo as_func_ret_failure succeeded.
312 if ( set x; as_func_ret_success y && test x = "$1" ); then
316 echo positional parameters were not saved.
319 test $exitcode = 0) || { (exit 1); exit 1; }
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; }
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
341 exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
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; }
360 (eval "as_func_return () {
369 as_func_ret_success () {
372 as_func_ret_failure () {
377 if as_func_success; then
381 echo as_func_success failed.
384 if as_func_failure; then
386 echo as_func_failure succeeded.
389 if as_func_ret_success; then
393 echo as_func_ret_success failed.
396 if as_func_ret_failure; then
398 echo as_func_ret_failure succeeded.
401 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
405 echo positional parameters were not saved.
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
419 test "x$as_lineno_1" != "x$as_lineno_2" &&
420 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
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
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. :-)
443 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
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; }; }
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).
455 # Exit status is that of the last command.
460 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
466 ECHO_C= ECHO_N= ECHO_T=
470 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
477 if expr a : '\(a\)' >/dev/null 2>&1 &&
478 test "X`expr 00001 : '.*\(...\)'`" = X001; then
484 rm -f conf$$ conf$$.exe conf$$.file
485 if test -d conf$$.dir; then
486 rm -f conf$$.dir/conf$$.file
492 if ln -s conf$$.file conf$$ 2>/dev/null; then
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 ||
500 elif ln conf$$.file conf$$ 2>/dev/null; then
505 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
506 rmdir conf$$.dir 2>/dev/null
508 if mkdir -p . 2>/dev/null; then
511 test -d ./-p && rmdir ./-p
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
522 if test -x conf$$.file >/dev/null 2>&1; then
523 as_executable_p="test -x"
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'"
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'"
537 exec 7<&0 </dev/null 6>&1
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`
547 ac_default_prefix=/usr/local
549 ac_config_libobj_dir=.
555 SHELL=${CONFIG_SHELL-/bin/sh}
557 # Identity of this package.
564 ac_unique_file="Makefile.in"
565 # Factoring default headers for most tests.
566 ac_includes_default="\
569 # include <sys/types.h>
572 # include <sys/stat.h>
583 # if !STDC_HEADERS && HAVE_MEMORY_H
589 # include <strings.h>
592 # include <inttypes.h>
610 program_transform_name
664 sdccconf_h_dir_separator
678 OPT_DISABLE_DEVICE_LIB
693 ac_precious_vars='build_alias
701 sdccconf_h_dir_separator
705 ac_subdirs_all='support/cpp2
712 # Initialize some variables set by options.
714 ac_init_version=false
715 # The variables have the same names as the options, with
716 # dashes changed to underlines.
724 program_transform_name=s,x,x,
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'
754 libdir='${exec_prefix}/lib'
755 localedir='${datarootdir}/locale'
756 mandir='${datarootdir}/man'
762 # If the previous option needs an argument, assign it.
763 if test -n "$ac_prev"; then
764 eval $ac_prev=\$ac_option
770 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
774 # Accept the important Cygnus configure options, so we can diagnose typos.
776 case $ac_dashdash$ac_option in
780 -bindir | --bindir | --bindi | --bind | --bin | --bi)
782 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
785 -build | --build | --buil | --bui | --bu)
786 ac_prev=build_alias ;;
787 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
788 build_alias=$ac_optarg ;;
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 ;;
798 cache_file=config.cache ;;
800 -datadir | --datadir | --datadi | --datad)
802 -datadir=* | --datadir=* | --datadi=* | --datad=*)
803 datadir=$ac_optarg ;;
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 ;;
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 ;;
821 -docdir | --docdir | --docdi | --doc | --do)
823 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
826 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
828 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
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 ;;
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 ;;
849 -gas | --gas | --ga | --g)
850 # Obsolete; use --with-gas.
853 -help | --help | --hel | --he | -h)
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 ;;
860 -host | --host | --hos | --ho)
861 ac_prev=host_alias ;;
862 -host=* | --host=* | --hos=* | --ho=*)
863 host_alias=$ac_optarg ;;
865 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
867 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
869 htmldir=$ac_optarg ;;
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 ;;
878 -infodir | --infodir | --infodi | --infod | --info | --inf)
880 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
881 infodir=$ac_optarg ;;
883 -libdir | --libdir | --libdi | --libd)
885 -libdir=* | --libdir=* | --libdi=* | --libd=*)
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 ;;
895 -localedir | --localedir | --localedi | --localed | --locale)
897 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
898 localedir=$ac_optarg ;;
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 ;;
907 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
909 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
913 # Obsolete; use --without-fp.
916 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
917 | --no-cr | --no-c | -n)
920 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
921 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
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 ;;
933 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
935 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
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 ;;
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 ;;
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 ;;
969 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
971 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
974 -psdir | --psdir | --psdi | --psd | --ps)
976 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
979 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
980 | -silent | --silent | --silen | --sile | --sil)
983 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
985 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
987 sbindir=$ac_optarg ;;
989 -sharedstatedir | --sharedstatedir | --sharedstatedi \
990 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
991 | --sharedst | --shareds | --shared | --share | --shar \
993 ac_prev=sharedstatedir ;;
994 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
995 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
996 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
998 sharedstatedir=$ac_optarg ;;
1000 -site | --site | --sit)
1002 -site=* | --site=* | --sit=*)
1005 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1007 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1008 srcdir=$ac_optarg ;;
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 ;;
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 ;;
1022 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1025 -version | --version | --versio | --versi | --vers | -V)
1026 ac_init_version=: ;;
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 ;;
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 ;;
1047 # Obsolete; use --with-x.
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 ;;
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 ;;
1064 -*) { echo "$as_me: error: unrecognized option: $ac_option
1065 Try \`$0 --help' for more information." >&2
1066 { (exit 1); exit 1; }; }
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 ;;
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}
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; }; }
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
1101 eval ac_val=\$$ac_var
1103 [\\/$]* | ?:[\\/]* ) continue;;
1104 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1106 { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1107 { (exit 1); exit 1; }; }
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.
1115 target=$target_alias
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
1129 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1131 test "$silent" = yes && exec 6>/dev/null
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; }; }
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 ||
1154 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1172 if test ! -r "$srcdir/$ac_unique_file"; then
1176 ac_srcdir_defaulted=no
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; }; }
1183 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1185 cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2
1186 { (exit 1); exit 1; }; }
1188 # When building in place, set srcdir=.
1189 if test "$ac_abs_confdir" = "$ac_pwd"; then
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.
1196 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
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}
1206 # Report the --help message.
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.
1212 \`configure' configures this package to adapt to many kinds of systems.
1214 Usage: $0 [OPTION]... [VAR=VALUE]...
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.
1219 Defaults for the options are specified in brackets.
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 \`..']
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
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'.
1243 For better control, use the options below.
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]
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
1276 if test -n "$ac_init_help"; then
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
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>
1310 sdccconf_h_dir_separator
1311 needed in sdccconf.h: either "/" (default) or "\\"
1313 appended to datadir to define SDCC's include directory
1315 appended to datadir to define SDCC's library root directory
1316 docdir documentation installation directory
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.
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
1332 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
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/ ;;
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
1348 .) # We are building in place.
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 ;;
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 ;;
1361 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1363 cd "$ac_dir" || { ac_status=$?; continue; }
1364 # Check for guested configure.
1365 if test -f "$ac_srcdir/configure.gnu"; then
1367 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1368 elif test -f "$ac_srcdir/configure"; then
1370 $SHELL "$ac_srcdir/configure" --help=recursive
1372 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1374 cd "$ac_pwd" || { ac_status=$?; break; }
1378 test -n "$ac_init_help" && exit $ac_status
1379 if $ac_init_version; then
1382 generated by GNU Autoconf 2.60
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.
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.
1395 It was created by $as_me, which was
1396 generated by GNU Autoconf 2.60. Invocation command line was
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`
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`
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`
1427 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1431 test -z "$as_dir" && as_dir=.
1432 echo "PATH: $as_dir"
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.
1456 ac_must_keep_next=false
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)
1467 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1470 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
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.
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 ;;
1485 -* ) ac_must_keep_next=true ;;
1488 ac_configure_args="$ac_configure_args '$ac_arg'"
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; }
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.
1507 ## ---------------- ##
1508 ## Cache variables. ##
1509 ## ---------------- ##
1512 # The following way of writing the cache mishandles newlines in values,
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
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;} ;;
1523 _ | IFS | as_nl) ;; #(
1524 *) $as_unset $ac_var ;;
1529 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1530 *${as_nl}ac_space=\ *)
1532 "s/'\''/'\''\\\\'\'''\''/g;
1533 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1536 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1544 ## ----------------- ##
1545 ## Output variables. ##
1546 ## ----------------- ##
1549 for ac_var in $ac_subst_vars
1551 eval ac_val=\$$ac_var
1553 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1555 echo "$ac_var='\''$ac_val'\''"
1559 if test -n "$ac_subst_files"; then
1561 ## ------------------- ##
1562 ## File substitutions. ##
1563 ## ------------------- ##
1566 for ac_var in $ac_subst_files
1568 eval ac_val=\$$ac_var
1570 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1572 echo "$ac_var='\''$ac_val'\''"
1577 if test -s confdefs.h; then
1587 test "$ac_signal" != 0 &&
1588 echo "$as_me: caught signal $ac_signal"
1589 echo "$as_me: exit $exit_status"
1591 rm -f core *.core core.conftest.* &&
1592 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1595 for ac_signal in 1 2 13 15; do
1596 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1600 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1601 rm -f -r conftest* confdefs.h
1603 # Predefined preprocessor variables.
1605 cat >>confdefs.h <<_ACEOF
1606 #define PACKAGE_NAME "$PACKAGE_NAME"
1610 cat >>confdefs.h <<_ACEOF
1611 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1615 cat >>confdefs.h <<_ACEOF
1616 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1620 cat >>confdefs.h <<_ACEOF
1621 #define PACKAGE_STRING "$PACKAGE_STRING"
1625 cat >>confdefs.h <<_ACEOF
1626 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
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"
1637 set x "$ac_default_prefix/share/config.site" \
1638 "$ac_default_prefix/etc/config.site"
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
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;}
1658 [\\/]* | ?:[\\/]* ) . "$cache_file";;
1659 *) . "./$cache_file";;
1663 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1664 echo "$as_me: creating cache $cache_file" >&6;}
1668 # Check that the precious variables saved in the cache have kept the same
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
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=: ;;
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=: ;;
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=:
1697 # Pass precious variables to config.status.
1698 if test "$ac_new_set" = set; then
1700 *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1701 *) ac_arg=$ac_var=$ac_new_val ;;
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'" ;;
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; }; }
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
1741 ac_config_headers="$ac_config_headers sdccconf.h:sdccconf_in.h"
1744 for ac_prog in gawk mawk nawk awk
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
1753 if test -n "$AWK"; then
1754 ac_cv_prog_AWK="$AWK" # Let the user override the test.
1756 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
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
1774 if test -n "$AWK"; then
1775 { echo "$as_me:$LINENO: result: $AWK" >&5
1776 echo "${ECHO_T}$AWK" >&6; }
1778 { echo "$as_me:$LINENO: result: no" >&5
1779 echo "${ECHO_T}no" >&6; }
1783 test -n "$AWK" && break
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`
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}'`
1800 { echo "$as_me:$LINENO: result: ${VERSION}" >&5
1801 echo "${ECHO_T}${VERSION}" >&6; }
1806 cat >>confdefs.h <<_ACEOF
1807 #define SDCC_VERSION_LO ${VERSIONLO}
1810 cat >>confdefs.h <<_ACEOF
1811 #define SDCC_VERSION_HI ${VERSIONHI}
1814 cat >>confdefs.h <<_ACEOF
1815 #define SDCC_VERSION_P ${VERSIONP}
1818 cat >>confdefs.h <<_ACEOF
1819 #define SDCC_VERSION_STR "${VERSION}"
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,$//
1832 program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
1835 sdcc_cv_version=$VERSION
1836 sdcc_cv_versionhi=$VERSIONHI
1837 sdcc_cv_versionlo=$VERSIONLO
1838 sdcc_cv_versionp=$VERSIONP
1842 # ===========================================================================
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
1856 if test -n "$CC"; then
1857 ac_cv_prog_CC="$CC" # Let the user override the test.
1859 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
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
1877 if test -n "$CC"; then
1878 { echo "$as_me:$LINENO: result: $CC" >&5
1879 echo "${ECHO_T}$CC" >&6; }
1881 { echo "$as_me:$LINENO: result: no" >&5
1882 echo "${ECHO_T}no" >&6; }
1887 if test -z "$ac_cv_prog_CC"; then
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
1896 if test -n "$ac_ct_CC"; then
1897 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1899 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
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
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; }
1921 { echo "$as_me:$LINENO: result: no" >&5
1922 echo "${ECHO_T}no" >&6; }
1925 if test "x$ac_ct_CC" = x; then
1928 case $cross_compiling:$ac_tool_warned in
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 ;;
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
1953 if test -n "$CC"; then
1954 ac_cv_prog_CC="$CC" # Let the user override the test.
1956 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
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
1974 if test -n "$CC"; then
1975 { echo "$as_me:$LINENO: result: $CC" >&5
1976 echo "${ECHO_T}$CC" >&6; }
1978 { echo "$as_me:$LINENO: result: no" >&5
1979 echo "${ECHO_T}no" >&6; }
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
1993 if test -n "$CC"; then
1994 ac_cv_prog_CC="$CC" # Let the user override the test.
1997 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
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
2009 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
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
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.
2025 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2031 if test -n "$CC"; then
2032 { echo "$as_me:$LINENO: result: $CC" >&5
2033 echo "${ECHO_T}$CC" >&6; }
2035 { echo "$as_me:$LINENO: result: no" >&5
2036 echo "${ECHO_T}no" >&6; }
2041 if test -z "$CC"; then
2042 if test -n "$ac_tool_prefix"; then
2043 for ac_prog in cl.exe
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
2052 if test -n "$CC"; then
2053 ac_cv_prog_CC="$CC" # Let the user override the test.
2055 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
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
2073 if test -n "$CC"; then
2074 { echo "$as_me:$LINENO: result: $CC" >&5
2075 echo "${ECHO_T}$CC" >&6; }
2077 { echo "$as_me:$LINENO: result: no" >&5
2078 echo "${ECHO_T}no" >&6; }
2082 test -n "$CC" && break
2085 if test -z "$CC"; then
2087 for ac_prog in cl.exe
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
2096 if test -n "$ac_ct_CC"; then
2097 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2099 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
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
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; }
2121 { echo "$as_me:$LINENO: result: no" >&5
2122 echo "${ECHO_T}no" >&6; }
2126 test -n "$ac_ct_CC" && break
2129 if test "x$ac_ct_CC" = x; then
2132 case $cross_compiling:$ac_tool_warned in
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 ;;
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; }; }
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"
2160 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2161 *) ac_try_echo=$ac_try;;
2163 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2164 (eval "$ac_compiler --version >&5") 2>&5
2166 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2167 (exit $ac_status); }
2168 { (ac_try="$ac_compiler -v >&5"
2170 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2171 *) ac_try_echo=$ac_try;;
2173 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2174 (eval "$ac_compiler -v >&5") 2>&5
2176 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2177 (exit $ac_status); }
2178 { (ac_try="$ac_compiler -V >&5"
2180 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2181 *) ac_try_echo=$ac_try;;
2183 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2184 (eval "$ac_compiler -V >&5") 2>&5
2186 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2187 (exit $ac_status); }
2189 cat >conftest.$ac_ext <<_ACEOF
2192 cat confdefs.h >>conftest.$ac_ext
2193 cat >>conftest.$ac_ext <<_ACEOF
2194 /* end confdefs.h. */
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
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[^ ]*//'`
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'
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.
2222 for ac_file in $ac_files
2225 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2226 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2231 if { (ac_try="$ac_link_default"
2233 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2234 *) ac_try_echo=$ac_try;;
2236 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2237 (eval "$ac_link_default") 2>&5
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
2246 for ac_file in $ac_files
2248 test -f "$ac_file" || continue
2250 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj )
2253 # We found the default executable, but exeext='' is most
2257 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2259 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
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
2271 test "$ac_cv_exeext" = no && ac_cv_exeext=
2274 echo "$as_me: failed program was:" >&5
2275 sed 's/^/| /' conftest.$ac_ext >&5
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; }; }
2284 ac_exeext=$ac_cv_exeext
2285 { echo "$as_me:$LINENO: result: $ac_file" >&5
2286 echo "${ECHO_T}$ac_file" >&6; }
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;;
2300 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2301 (eval "$ac_try") 2>&5
2303 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2304 (exit $ac_status); }; }; then
2307 if test "$cross_compiling" = maybe; then
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; }; }
2320 { echo "$as_me:$LINENO: result: yes" >&5
2321 echo "${ECHO_T}yes" >&6; }
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; }
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"
2336 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2337 *) ac_try_echo=$ac_try;;
2339 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2340 (eval "$ac_link") 2>&5
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
2348 for ac_file in conftest.exe conftest conftest.*; do
2349 test -f "$ac_file" || continue
2351 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2352 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
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; }; }
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; }
2369 rm -f conftest.$ac_ext
2370 EXEEXT=$ac_cv_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
2377 cat >conftest.$ac_ext <<_ACEOF
2380 cat confdefs.h >>conftest.$ac_ext
2381 cat >>conftest.$ac_ext <<_ACEOF
2382 /* end confdefs.h. */
2392 rm -f conftest.o conftest.obj
2393 if { (ac_try="$ac_compile"
2395 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2396 *) ac_try_echo=$ac_try;;
2398 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2399 (eval "$ac_compile") 2>&5
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;
2406 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
2407 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2412 echo "$as_me: failed program was:" >&5
2413 sed 's/^/| /' conftest.$ac_ext >&5
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; }; }
2422 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2424 { echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2425 echo "${ECHO_T}$ac_cv_objext" >&6; }
2426 OBJEXT=$ac_cv_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
2433 cat >conftest.$ac_ext <<_ACEOF
2436 cat confdefs.h >>conftest.$ac_ext
2437 cat >>conftest.$ac_ext <<_ACEOF
2438 /* end confdefs.h. */
2451 rm -f conftest.$ac_objext
2452 if { (ac_try="$ac_compile"
2454 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2455 *) ac_try_echo=$ac_try;;
2457 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2458 (eval "$ac_compile") 2>conftest.er1
2460 grep -v '^ *+' conftest.er1 >conftest.err
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;;
2470 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2471 (eval "$ac_try") 2>&5
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;;
2480 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2481 (eval "$ac_try") 2>&5
2483 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2484 (exit $ac_status); }; }; then
2487 echo "$as_me: failed program was:" >&5
2488 sed 's/^/| /' conftest.$ac_ext >&5
2493 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2494 ac_cv_c_compiler_gnu=$ac_compiler_gnu
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
2507 ac_save_c_werror_flag=$ac_c_werror_flag
2508 ac_c_werror_flag=yes
2511 cat >conftest.$ac_ext <<_ACEOF
2514 cat confdefs.h >>conftest.$ac_ext
2515 cat >>conftest.$ac_ext <<_ACEOF
2516 /* end confdefs.h. */
2526 rm -f conftest.$ac_objext
2527 if { (ac_try="$ac_compile"
2529 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2530 *) ac_try_echo=$ac_try;;
2532 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2533 (eval "$ac_compile") 2>conftest.er1
2535 grep -v '^ *+' conftest.er1 >conftest.err
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;;
2545 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2546 (eval "$ac_try") 2>&5
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;;
2555 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2556 (eval "$ac_try") 2>&5
2558 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2559 (exit $ac_status); }; }; then
2562 echo "$as_me: failed program was:" >&5
2563 sed 's/^/| /' conftest.$ac_ext >&5
2566 cat >conftest.$ac_ext <<_ACEOF
2569 cat confdefs.h >>conftest.$ac_ext
2570 cat >>conftest.$ac_ext <<_ACEOF
2571 /* end confdefs.h. */
2581 rm -f conftest.$ac_objext
2582 if { (ac_try="$ac_compile"
2584 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2585 *) ac_try_echo=$ac_try;;
2587 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2588 (eval "$ac_compile") 2>conftest.er1
2590 grep -v '^ *+' conftest.er1 >conftest.err
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;;
2600 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2601 (eval "$ac_try") 2>&5
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;;
2610 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2611 (eval "$ac_try") 2>&5
2613 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2614 (exit $ac_status); }; }; then
2617 echo "$as_me: failed program was:" >&5
2618 sed 's/^/| /' conftest.$ac_ext >&5
2620 ac_c_werror_flag=$ac_save_c_werror_flag
2622 cat >conftest.$ac_ext <<_ACEOF
2625 cat confdefs.h >>conftest.$ac_ext
2626 cat >>conftest.$ac_ext <<_ACEOF
2627 /* end confdefs.h. */
2637 rm -f conftest.$ac_objext
2638 if { (ac_try="$ac_compile"
2640 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2641 *) ac_try_echo=$ac_try;;
2643 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2644 (eval "$ac_compile") 2>conftest.er1
2646 grep -v '^ *+' conftest.er1 >conftest.err
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;;
2656 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2657 (eval "$ac_try") 2>&5
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;;
2666 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2667 (eval "$ac_try") 2>&5
2669 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2670 (exit $ac_status); }; }; then
2673 echo "$as_me: failed program was:" >&5
2674 sed 's/^/| /' conftest.$ac_ext >&5
2679 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2682 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2685 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2686 ac_c_werror_flag=$ac_save_c_werror_flag
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
2699 if test "$GCC" = yes; then
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
2710 ac_cv_prog_cc_c89=no
2712 cat >conftest.$ac_ext <<_ACEOF
2715 cat confdefs.h >>conftest.$ac_ext
2716 cat >>conftest.$ac_ext <<_ACEOF
2717 /* end confdefs.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)
2731 static char *f (char * (*g) (char **, int), char **p, ...)
2736 s = g (p, va_arg (v,int));
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];
2750 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
2751 inside strings and character constants. */
2753 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
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);
2764 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2769 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
2770 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2772 CC="$ac_save_CC $ac_arg"
2773 rm -f conftest.$ac_objext
2774 if { (ac_try="$ac_compile"
2776 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2777 *) ac_try_echo=$ac_try;;
2779 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2780 (eval "$ac_compile") 2>conftest.er1
2782 grep -v '^ *+' conftest.er1 >conftest.err
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;;
2792 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2793 (eval "$ac_try") 2>&5
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;;
2802 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2803 (eval "$ac_try") 2>&5
2805 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2806 (exit $ac_status); }; }; then
2807 ac_cv_prog_cc_c89=$ac_arg
2809 echo "$as_me: failed program was:" >&5
2810 sed 's/^/| /' conftest.$ac_ext >&5
2815 rm -f core conftest.err conftest.$ac_objext
2816 test "x$ac_cv_prog_cc_c89" != "xno" && break
2818 rm -f conftest.$ac_ext
2823 case "x$ac_cv_prog_cc_c89" in
2825 { echo "$as_me:$LINENO: result: none needed" >&5
2826 echo "${ECHO_T}none needed" >&6; } ;;
2828 { echo "$as_me:$LINENO: result: unsupported" >&5
2829 echo "${ECHO_T}unsupported" >&6; } ;;
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; } ;;
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
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
2854 if test -z "$CPP"; then
2855 if test "${ac_cv_prog_CPP+set}" = set; then
2856 echo $ECHO_N "(cached) $ECHO_C" >&6
2858 # Double quotes because CPP needs to be expanded
2859 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
2862 for ac_c_preproc_warn_flag in '' yes
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
2873 cat confdefs.h >>conftest.$ac_ext
2874 cat >>conftest.$ac_ext <<_ACEOF
2875 /* end confdefs.h. */
2877 # include <limits.h>
2879 # include <assert.h>
2883 if { (ac_try="$ac_cpp conftest.$ac_ext"
2885 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2886 *) ac_try_echo=$ac_try;;
2888 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2889 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
2891 grep -v '^ *+' conftest.er1 >conftest.err
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
2905 if test -z "$ac_cpp_err"; then
2908 echo "$as_me: failed program was:" >&5
2909 sed 's/^/| /' conftest.$ac_ext >&5
2911 # Broken: fails on valid input.
2915 rm -f conftest.err conftest.$ac_ext
2917 # OK, works on sane cases. Now check whether nonexistent headers
2918 # can be detected and how.
2919 cat >conftest.$ac_ext <<_ACEOF
2922 cat confdefs.h >>conftest.$ac_ext
2923 cat >>conftest.$ac_ext <<_ACEOF
2924 /* end confdefs.h. */
2925 #include <ac_nonexistent.h>
2927 if { (ac_try="$ac_cpp conftest.$ac_ext"
2929 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2930 *) ac_try_echo=$ac_try;;
2932 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2933 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
2935 grep -v '^ *+' conftest.er1 >conftest.err
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
2949 if test -z "$ac_cpp_err"; then
2950 # Broken: success on invalid input.
2953 echo "$as_me: failed program was:" >&5
2954 sed 's/^/| /' conftest.$ac_ext >&5
2956 # Passes both tests.
2961 rm -f conftest.err conftest.$ac_ext
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
2978 { echo "$as_me:$LINENO: result: $CPP" >&5
2979 echo "${ECHO_T}$CPP" >&6; }
2981 for ac_c_preproc_warn_flag in '' yes
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
2992 cat confdefs.h >>conftest.$ac_ext
2993 cat >>conftest.$ac_ext <<_ACEOF
2994 /* end confdefs.h. */
2996 # include <limits.h>
2998 # include <assert.h>
3002 if { (ac_try="$ac_cpp conftest.$ac_ext"
3004 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3005 *) ac_try_echo=$ac_try;;
3007 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3008 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3010 grep -v '^ *+' conftest.er1 >conftest.err
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
3024 if test -z "$ac_cpp_err"; then
3027 echo "$as_me: failed program was:" >&5
3028 sed 's/^/| /' conftest.$ac_ext >&5
3030 # Broken: fails on valid input.
3034 rm -f conftest.err conftest.$ac_ext
3036 # OK, works on sane cases. Now check whether nonexistent headers
3037 # can be detected and how.
3038 cat >conftest.$ac_ext <<_ACEOF
3041 cat confdefs.h >>conftest.$ac_ext
3042 cat >>conftest.$ac_ext <<_ACEOF
3043 /* end confdefs.h. */
3044 #include <ac_nonexistent.h>
3046 if { (ac_try="$ac_cpp conftest.$ac_ext"
3048 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3049 *) ac_try_echo=$ac_try;;
3051 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3052 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3054 grep -v '^ *+' conftest.er1 >conftest.err
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
3068 if test -z "$ac_cpp_err"; then
3069 # Broken: success on invalid input.
3072 echo "$as_me: failed program was:" >&5
3073 sed 's/^/| /' conftest.$ac_ext >&5
3075 # Passes both tests.
3080 rm -f conftest.err conftest.$ac_ext
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
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; }; }
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
3102 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
3103 if test -f "$ac_dir/install-sh"; then
3105 ac_install_sh="$ac_aux_dir/install-sh -c"
3107 elif test -f "$ac_dir/install.sh"; then
3109 ac_install_sh="$ac_aux_dir/install.sh -c"
3111 elif test -f "$ac_dir/shtool"; then
3113 ac_install_sh="$ac_aux_dir/shtool install -c"
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; }; }
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.
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
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
3151 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3155 test -z "$as_dir" && as_dir=.
3156 # Account for people who put trailing slashes in PATH elements.
3158 ./ | .// | /cC/* | \
3159 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
3160 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
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
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.
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.
3178 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
3191 if test "${ac_cv_path_install+set}" = set; then
3192 INSTALL=$ac_cv_path_install
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
3201 { echo "$as_me:$LINENO: result: $INSTALL" >&5
3202 echo "${ECHO_T}$INSTALL" >&6; }
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}'
3208 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
3210 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
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
3220 if test -n "$RANLIB"; then
3221 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
3223 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
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
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; }
3245 { echo "$as_me:$LINENO: result: no" >&5
3246 echo "${ECHO_T}no" >&6; }
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
3260 if test -n "$ac_ct_RANLIB"; then
3261 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
3263 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
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
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; }
3285 { echo "$as_me:$LINENO: result: no" >&5
3286 echo "${ECHO_T}no" >&6; }
3289 if test "x$ac_ct_RANLIB" = x; then
3292 case $cross_compiling:$ac_tool_warned in
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 ;;
3302 RANLIB=$ac_ct_RANLIB
3305 RANLIB="$ac_cv_prog_RANLIB"
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
3315 if test -n "$AUTOCONF"; then
3316 ac_cv_prog_AUTOCONF="$AUTOCONF" # Let the user override the test.
3318 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
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
3333 test -z "$ac_cv_prog_AUTOCONF" && ac_cv_prog_AUTOCONF=":"
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; }
3341 { echo "$as_me:$LINENO: result: no" >&5
3342 echo "${ECHO_T}no" >&6; }
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
3353 if test -n "$STRIP"; then
3354 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
3356 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
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
3371 test -z "$ac_cv_prog_STRIP" && ac_cv_prog_STRIP=":"
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; }
3379 { echo "$as_me:$LINENO: result: no" >&5
3380 echo "${ECHO_T}no" >&6; }
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
3391 if test -n "$AS"; then
3392 ac_cv_prog_AS="$AS" # Let the user override the test.
3394 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
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
3402 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3409 test -z "$ac_cv_prog_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; }
3417 { echo "$as_me:$LINENO: result: no" >&5
3418 echo "${ECHO_T}no" >&6; }
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
3429 if test -n "$CP"; then
3430 ac_cv_prog_CP="$CP" # Let the user override the test.
3432 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
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
3440 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3447 test -z "$ac_cv_prog_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; }
3455 { echo "$as_me:$LINENO: result: no" >&5
3456 echo "${ECHO_T}no" >&6; }
3461 for ac_prog in flex lex
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
3470 if test -n "$LEX"; then
3471 ac_cv_prog_LEX="$LEX" # Let the user override the test.
3473 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
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
3491 if test -n "$LEX"; then
3492 { echo "$as_me:$LINENO: result: $LEX" >&5
3493 echo "${ECHO_T}$LEX" >&6; }
3495 { echo "$as_me:$LINENO: result: no" >&5
3496 echo "${ECHO_T}no" >&6; }
3500 test -n "$LEX" && break
3502 test -n "$LEX" || LEX=":"
3505 for ac_prog in 'bison -y' byacc yacc
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
3514 if test -n "$YACC"; then
3515 ac_cv_prog_YACC="$YACC" # Let the user override the test.
3517 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
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
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; }
3539 { echo "$as_me:$LINENO: result: no" >&5
3540 echo "${ECHO_T}no" >&6; }
3544 test -n "$YACC" && break
3546 test -n "$YACC" || YACC=":"
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; }; }
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; }; }
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
3572 # Checking for functions
3573 # ===========================================================================
3576 for ac_func in strerror
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
3584 cat >conftest.$ac_ext <<_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
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. */
3600 # include <limits.h>
3602 # include <assert.h>
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. */
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
3629 rm -f conftest.$ac_objext conftest$ac_exeext
3630 if { (ac_try="$ac_link"
3632 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3633 *) ac_try_echo=$ac_try;;
3635 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3636 (eval "$ac_link") 2>conftest.er1
3638 grep -v '^ *+' conftest.er1 >conftest.err
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;;
3648 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3649 (eval "$ac_try") 2>&5
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;;
3658 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3659 (eval "$ac_try") 2>&5
3661 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3662 (exit $ac_status); }; }; then
3663 eval "$as_ac_var=yes"
3665 echo "$as_me: failed program was:" >&5
3666 sed 's/^/| /' conftest.$ac_ext >&5
3668 eval "$as_ac_var=no"
3671 rm -f core conftest.err conftest.$ac_objext \
3672 conftest$ac_exeext conftest.$ac_ext
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
3689 for ac_func in vsnprintf snprintf vsprintf mkstemp
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
3697 cat >conftest.$ac_ext <<_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
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. */
3713 # include <limits.h>
3715 # include <assert.h>
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. */
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
3742 rm -f conftest.$ac_objext conftest$ac_exeext
3743 if { (ac_try="$ac_link"
3745 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3746 *) ac_try_echo=$ac_try;;
3748 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3749 (eval "$ac_link") 2>conftest.er1
3751 grep -v '^ *+' conftest.er1 >conftest.err
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;;
3761 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3762 (eval "$ac_try") 2>&5
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;;
3771 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3772 (eval "$ac_try") 2>&5
3774 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3775 (exit $ac_status); }; }; then
3776 eval "$as_ac_var=yes"
3778 echo "$as_me: failed program was:" >&5
3779 sed 's/^/| /' conftest.$ac_ext >&5
3781 eval "$as_ac_var=no"
3784 rm -f core conftest.err conftest.$ac_objext \
3785 conftest$ac_exeext conftest.$ac_ext
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
3801 # ===========================================================================
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)
3809 # This macro expands DIR and assigns it to RET.
3810 # If DIR is NONE, then it's replaced by DEFAULT.
3812 # Based on AC_DEFINE_DIR
3816 # adl_EXPAND(prefix, "/usr/local", expanded_prefix)
3820 # adl_NORMALIZE_PATH
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).
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.
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.
3839 # adl_COMPUTE_RELATIVE_PATH
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.
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.
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
3878 echo "#include <stdio.h>" >_test_.c
3880 $CPP -v -MM _test_.c 1>&5 2>&5
3881 if test "$?" = "0"; then
3888 { echo "$as_me:$LINENO: result: $sdcc_cv_MM" >&5
3889 echo "${ECHO_T}$sdcc_cv_MM" >&6; }
3893 # This is the first time when CFLAGS are set/modified!!
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
3904 $CC -v -ggdb -c _test_.c 1>&5 2>&5
3905 if test "$?" = "0"; then
3906 sdcc_cv_CCggdb="yes"
3910 rm -f _test_.* a.out
3912 { echo "$as_me:$LINENO: result: $sdcc_cv_CCggdb" >&5
3913 echo "${ECHO_T}$sdcc_cv_CCggdb" >&6; }
3915 if test "$sdcc_cv_CCggdb" = "yes"; then
3916 CFLAGS="-ggdb ${CFLAGS}"
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
3929 $CC -v -pipe -c _test_.c 1>&5 2>&5
3930 if test "$?" = "0"; then
3931 sdcc_cv_CCpipe="yes"
3935 rm -f _test_.* a.out
3937 { echo "$as_me:$LINENO: result: $sdcc_cv_CCpipe" >&5
3938 echo "${ECHO_T}$sdcc_cv_CCpipe" >&6; }
3940 if test "$sdcc_cv_CCpipe" = "yes"; then
3941 CFLAGS="-pipe $CFLAGS"
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
3952 cat >conftest.$ac_ext <<_ACEOF
3955 cat confdefs.h >>conftest.$ac_ext
3956 cat >>conftest.$ac_ext <<_ACEOF
3957 /* end confdefs.h. */
3958 #include <sys/types.h>
3964 return *(signal (0, 0)) (0) == 1;
3969 rm -f conftest.$ac_objext
3970 if { (ac_try="$ac_compile"
3972 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3973 *) ac_try_echo=$ac_try;;
3975 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3976 (eval "$ac_compile") 2>conftest.er1
3978 grep -v '^ *+' conftest.er1 >conftest.err
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;;
3988 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3989 (eval "$ac_try") 2>&5
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;;
3998 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3999 (eval "$ac_try") 2>&5
4001 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4002 (exit $ac_status); }; }; then
4003 ac_cv_type_signal=int
4005 echo "$as_me: failed program was:" >&5
4006 sed 's/^/| /' conftest.$ac_ext >&5
4008 ac_cv_type_signal=void
4011 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4013 { echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
4014 echo "${ECHO_T}$ac_cv_type_signal" >&6; }
4016 cat >>confdefs.h <<_ACEOF
4017 #define RETSIGTYPE $ac_cv_type_signal
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
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
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
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
4049 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4052 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
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
4067 # 10*(2^10) chars as input seems more than enough
4068 test $ac_count -gt 10 && break
4070 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4074 $ac_path_GREP_found && break 3
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; }; }
4092 ac_cv_path_GREP=$GREP
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"
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
4107 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4108 then ac_cv_path_EGREP="$GREP -E"
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
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
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
4131 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4134 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
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
4149 # 10*(2^10) chars as input seems more than enough
4150 test $ac_count -gt 10 && break
4152 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4156 $ac_path_EGREP_found && break 3
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; }; }
4174 ac_cv_path_EGREP=$EGREP
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"
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
4190 cat >conftest.$ac_ext <<_ACEOF
4193 cat confdefs.h >>conftest.$ac_ext
4194 cat >>conftest.$ac_ext <<_ACEOF
4195 /* end confdefs.h. */
4209 rm -f conftest.$ac_objext
4210 if { (ac_try="$ac_compile"
4212 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4213 *) ac_try_echo=$ac_try;;
4215 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4216 (eval "$ac_compile") 2>conftest.er1
4218 grep -v '^ *+' conftest.er1 >conftest.err
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;;
4228 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4229 (eval "$ac_try") 2>&5
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;;
4238 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4239 (eval "$ac_try") 2>&5
4241 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4242 (exit $ac_status); }; }; then
4243 ac_cv_header_stdc=yes
4245 echo "$as_me: failed program was:" >&5
4246 sed 's/^/| /' conftest.$ac_ext >&5
4248 ac_cv_header_stdc=no
4251 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
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
4258 cat confdefs.h >>conftest.$ac_ext
4259 cat >>conftest.$ac_ext <<_ACEOF
4260 /* end confdefs.h. */
4264 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4265 $EGREP "memchr" >/dev/null 2>&1; then
4268 ac_cv_header_stdc=no
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
4279 cat confdefs.h >>conftest.$ac_ext
4280 cat >>conftest.$ac_ext <<_ACEOF
4281 /* end confdefs.h. */
4285 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4286 $EGREP "free" >/dev/null 2>&1; then
4289 ac_cv_header_stdc=no
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
4300 cat >conftest.$ac_ext <<_ACEOF
4303 cat confdefs.h >>conftest.$ac_ext
4304 cat >>conftest.$ac_ext <<_ACEOF
4305 /* end confdefs.h. */
4308 #if ((' ' & 0x0FF) == 0x020)
4309 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4310 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
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))
4319 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4324 for (i = 0; i < 256; i++)
4325 if (XOR (islower (i), ISLOWER (i))
4326 || toupper (i) != TOUPPER (i))
4331 rm -f conftest$ac_exeext
4332 if { (ac_try="$ac_link"
4334 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4335 *) ac_try_echo=$ac_try;;
4337 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4338 (eval "$ac_link") 2>&5
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;;
4346 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4347 (eval "$ac_try") 2>&5
4349 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4350 (exit $ac_status); }; }; then
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
4358 ac_cv_header_stdc=no
4360 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
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
4370 cat >>confdefs.h <<\_ACEOF
4371 #define STDC_HEADERS 1
4376 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
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
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
4395 cat >conftest.$ac_ext <<_ACEOF
4398 cat confdefs.h >>conftest.$ac_ext
4399 cat >>conftest.$ac_ext <<_ACEOF
4400 /* end confdefs.h. */
4401 $ac_includes_default
4403 #include <$ac_header>
4405 rm -f conftest.$ac_objext
4406 if { (ac_try="$ac_compile"
4408 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4409 *) ac_try_echo=$ac_try;;
4411 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4412 (eval "$ac_compile") 2>conftest.er1
4414 grep -v '^ *+' conftest.er1 >conftest.err
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;;
4424 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4425 (eval "$ac_try") 2>&5
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;;
4434 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4435 (eval "$ac_try") 2>&5
4437 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4438 (exit $ac_status); }; }; then
4439 eval "$as_ac_Header=yes"
4441 echo "$as_me: failed program was:" >&5
4442 sed 's/^/| /' conftest.$ac_ext >&5
4444 eval "$as_ac_Header=no"
4447 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
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
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
4467 cat >conftest.$ac_ext <<_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_;
4478 if ((ac__type_new_ *) 0)
4480 if (sizeof (ac__type_new_))
4486 rm -f conftest.$ac_objext
4487 if { (ac_try="$ac_compile"
4489 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4490 *) ac_try_echo=$ac_try;;
4492 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4493 (eval "$ac_compile") 2>conftest.er1
4495 grep -v '^ *+' conftest.er1 >conftest.err
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;;
4505 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4506 (eval "$ac_try") 2>&5
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;;
4515 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4516 (eval "$ac_try") 2>&5
4518 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4519 (exit $ac_status); }; }; then
4522 echo "$as_me: failed program was:" >&5
4523 sed 's/^/| /' conftest.$ac_ext >&5
4528 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4530 { echo "$as_me:$LINENO: result: $ac_cv_type_char" >&5
4531 echo "${ECHO_T}$ac_cv_type_char" >&6; }
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
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
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_;
4556 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
4563 rm -f conftest.$ac_objext
4564 if { (ac_try="$ac_compile"
4566 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4567 *) ac_try_echo=$ac_try;;
4569 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4570 (eval "$ac_compile") 2>conftest.er1
4572 grep -v '^ *+' conftest.er1 >conftest.err
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;;
4582 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4583 (eval "$ac_try") 2>&5
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;;
4592 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4593 (eval "$ac_try") 2>&5
4595 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4596 (exit $ac_status); }; }; then
4599 cat >conftest.$ac_ext <<_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_;
4610 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
4617 rm -f conftest.$ac_objext
4618 if { (ac_try="$ac_compile"
4620 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4621 *) ac_try_echo=$ac_try;;
4623 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4624 (eval "$ac_compile") 2>conftest.er1
4626 grep -v '^ *+' conftest.er1 >conftest.err
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;;
4636 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4637 (eval "$ac_try") 2>&5
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;;
4646 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4647 (eval "$ac_try") 2>&5
4649 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4650 (exit $ac_status); }; }; then
4651 ac_hi=$ac_mid; break
4653 echo "$as_me: failed program was:" >&5
4654 sed 's/^/| /' conftest.$ac_ext >&5
4656 ac_lo=`expr $ac_mid + 1`
4657 if test $ac_lo -le $ac_mid; then
4661 ac_mid=`expr 2 '*' $ac_mid + 1`
4664 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4667 echo "$as_me: failed program was:" >&5
4668 sed 's/^/| /' conftest.$ac_ext >&5
4670 cat >conftest.$ac_ext <<_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_;
4681 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
4688 rm -f conftest.$ac_objext
4689 if { (ac_try="$ac_compile"
4691 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4692 *) ac_try_echo=$ac_try;;
4694 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4695 (eval "$ac_compile") 2>conftest.er1
4697 grep -v '^ *+' conftest.er1 >conftest.err
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;;
4707 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4708 (eval "$ac_try") 2>&5
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;;
4717 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4718 (eval "$ac_try") 2>&5
4720 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4721 (exit $ac_status); }; }; then
4724 cat >conftest.$ac_ext <<_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_;
4735 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
4742 rm -f conftest.$ac_objext
4743 if { (ac_try="$ac_compile"
4745 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4746 *) ac_try_echo=$ac_try;;
4748 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4749 (eval "$ac_compile") 2>conftest.er1
4751 grep -v '^ *+' conftest.er1 >conftest.err
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;;
4761 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4762 (eval "$ac_try") 2>&5
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;;
4771 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4772 (eval "$ac_try") 2>&5
4774 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4775 (exit $ac_status); }; }; then
4776 ac_lo=$ac_mid; break
4778 echo "$as_me: failed program was:" >&5
4779 sed 's/^/| /' conftest.$ac_ext >&5
4781 ac_hi=`expr '(' $ac_mid ')' - 1`
4782 if test $ac_mid -le $ac_hi; then
4786 ac_mid=`expr 2 '*' $ac_mid`
4789 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4792 echo "$as_me: failed program was:" >&5
4793 sed 's/^/| /' conftest.$ac_ext >&5
4798 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
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
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_;
4816 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
4823 rm -f conftest.$ac_objext
4824 if { (ac_try="$ac_compile"
4826 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4827 *) ac_try_echo=$ac_try;;
4829 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4830 (eval "$ac_compile") 2>conftest.er1
4832 grep -v '^ *+' conftest.er1 >conftest.err
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;;
4842 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4843 (eval "$ac_try") 2>&5
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;;
4852 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4853 (eval "$ac_try") 2>&5
4855 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4856 (exit $ac_status); }; }; then
4859 echo "$as_me: failed program was:" >&5
4860 sed 's/^/| /' conftest.$ac_ext >&5
4862 ac_lo=`expr '(' $ac_mid ')' + 1`
4865 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
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; }; } ;;
4876 cat >conftest.$ac_ext <<_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_)); }
4892 FILE *f = fopen ("conftest.val", "w");
4895 if (((long int) (sizeof (ac__type_sizeof_))) < 0)
4897 long int i = longval ();
4898 if (i != ((long int) (sizeof (ac__type_sizeof_))))
4900 fprintf (f, "%ld\n", i);
4904 unsigned long int i = ulongval ();
4905 if (i != ((long int) (sizeof (ac__type_sizeof_))))
4907 fprintf (f, "%lu\n", i);
4909 return ferror (f) || fclose (f) != 0;
4915 rm -f conftest$ac_exeext
4916 if { (ac_try="$ac_link"
4918 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4919 *) ac_try_echo=$ac_try;;
4921 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4922 (eval "$ac_link") 2>&5
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;;
4930 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4931 (eval "$ac_try") 2>&5
4933 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4934 (exit $ac_status); }; }; then
4935 ac_cv_sizeof_char=`cat conftest.val`
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
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; }; }
4948 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
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
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
4967 cat >conftest.$ac_ext <<_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_;
4978 if ((ac__type_new_ *) 0)
4980 if (sizeof (ac__type_new_))
4986 rm -f conftest.$ac_objext
4987 if { (ac_try="$ac_compile"
4989 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4990 *) ac_try_echo=$ac_try;;
4992 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4993 (eval "$ac_compile") 2>conftest.er1
4995 grep -v '^ *+' conftest.er1 >conftest.err
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;;
5005 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5006 (eval "$ac_try") 2>&5
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;;
5015 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5016 (eval "$ac_try") 2>&5
5018 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5019 (exit $ac_status); }; }; then
5020 ac_cv_type_short=yes
5022 echo "$as_me: failed program was:" >&5
5023 sed 's/^/| /' conftest.$ac_ext >&5
5028 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5030 { echo "$as_me:$LINENO: result: $ac_cv_type_short" >&5
5031 echo "${ECHO_T}$ac_cv_type_short" >&6; }
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
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
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_;
5056 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
5063 rm -f conftest.$ac_objext
5064 if { (ac_try="$ac_compile"
5066 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5067 *) ac_try_echo=$ac_try;;
5069 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5070 (eval "$ac_compile") 2>conftest.er1
5072 grep -v '^ *+' conftest.er1 >conftest.err
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;;
5082 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5083 (eval "$ac_try") 2>&5
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;;
5092 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5093 (eval "$ac_try") 2>&5
5095 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5096 (exit $ac_status); }; }; then
5099 cat >conftest.$ac_ext <<_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_;
5110 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
5117 rm -f conftest.$ac_objext
5118 if { (ac_try="$ac_compile"
5120 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5121 *) ac_try_echo=$ac_try;;
5123 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5124 (eval "$ac_compile") 2>conftest.er1
5126 grep -v '^ *+' conftest.er1 >conftest.err
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;;
5136 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5137 (eval "$ac_try") 2>&5
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;;
5146 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5147 (eval "$ac_try") 2>&5
5149 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5150 (exit $ac_status); }; }; then
5151 ac_hi=$ac_mid; break
5153 echo "$as_me: failed program was:" >&5
5154 sed 's/^/| /' conftest.$ac_ext >&5
5156 ac_lo=`expr $ac_mid + 1`
5157 if test $ac_lo -le $ac_mid; then
5161 ac_mid=`expr 2 '*' $ac_mid + 1`
5164 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5167 echo "$as_me: failed program was:" >&5
5168 sed 's/^/| /' conftest.$ac_ext >&5
5170 cat >conftest.$ac_ext <<_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_;
5181 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
5188 rm -f conftest.$ac_objext
5189 if { (ac_try="$ac_compile"
5191 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5192 *) ac_try_echo=$ac_try;;
5194 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5195 (eval "$ac_compile") 2>conftest.er1
5197 grep -v '^ *+' conftest.er1 >conftest.err
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;;
5207 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5208 (eval "$ac_try") 2>&5
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;;
5217 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5218 (eval "$ac_try") 2>&5
5220 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5221 (exit $ac_status); }; }; then
5224 cat >conftest.$ac_ext <<_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_;
5235 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
5242 rm -f conftest.$ac_objext
5243 if { (ac_try="$ac_compile"
5245 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5246 *) ac_try_echo=$ac_try;;
5248 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5249 (eval "$ac_compile") 2>conftest.er1
5251 grep -v '^ *+' conftest.er1 >conftest.err
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;;
5261 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5262 (eval "$ac_try") 2>&5
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;;
5271 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5272 (eval "$ac_try") 2>&5
5274 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5275 (exit $ac_status); }; }; then
5276 ac_lo=$ac_mid; break
5278 echo "$as_me: failed program was:" >&5
5279 sed 's/^/| /' conftest.$ac_ext >&5
5281 ac_hi=`expr '(' $ac_mid ')' - 1`
5282 if test $ac_mid -le $ac_hi; then
5286 ac_mid=`expr 2 '*' $ac_mid`
5289 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5292 echo "$as_me: failed program was:" >&5
5293 sed 's/^/| /' conftest.$ac_ext >&5
5298 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
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
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_;
5316 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
5323 rm -f conftest.$ac_objext
5324 if { (ac_try="$ac_compile"
5326 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5327 *) ac_try_echo=$ac_try;;
5329 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5330 (eval "$ac_compile") 2>conftest.er1
5332 grep -v '^ *+' conftest.er1 >conftest.err
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;;
5342 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5343 (eval "$ac_try") 2>&5
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;;
5352 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5353 (eval "$ac_try") 2>&5
5355 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5356 (exit $ac_status); }; }; then
5359 echo "$as_me: failed program was:" >&5
5360 sed 's/^/| /' conftest.$ac_ext >&5
5362 ac_lo=`expr '(' $ac_mid ')' + 1`
5365 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
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; }; } ;;
5376 cat >conftest.$ac_ext <<_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_)); }
5392 FILE *f = fopen ("conftest.val", "w");
5395 if (((long int) (sizeof (ac__type_sizeof_))) < 0)
5397 long int i = longval ();
5398 if (i != ((long int) (sizeof (ac__type_sizeof_))))
5400 fprintf (f, "%ld\n", i);
5404 unsigned long int i = ulongval ();
5405 if (i != ((long int) (sizeof (ac__type_sizeof_))))
5407 fprintf (f, "%lu\n", i);
5409 return ferror (f) || fclose (f) != 0;
5415 rm -f conftest$ac_exeext
5416 if { (ac_try="$ac_link"
5418 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5419 *) ac_try_echo=$ac_try;;
5421 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5422 (eval "$ac_link") 2>&5
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;;
5430 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5431 (eval "$ac_try") 2>&5
5433 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5434 (exit $ac_status); }; }; then
5435 ac_cv_sizeof_short=`cat conftest.val`
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
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; }; }
5448 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5452 ac_cv_sizeof_short=0
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
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
5467 cat >conftest.$ac_ext <<_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_;
5478 if ((ac__type_new_ *) 0)
5480 if (sizeof (ac__type_new_))
5486 rm -f conftest.$ac_objext
5487 if { (ac_try="$ac_compile"
5489 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5490 *) ac_try_echo=$ac_try;;
5492 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5493 (eval "$ac_compile") 2>conftest.er1
5495 grep -v '^ *+' conftest.er1 >conftest.err
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;;
5505 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5506 (eval "$ac_try") 2>&5
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;;
5515 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5516 (eval "$ac_try") 2>&5
5518 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5519 (exit $ac_status); }; }; then
5522 echo "$as_me: failed program was:" >&5
5523 sed 's/^/| /' conftest.$ac_ext >&5
5528 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5530 { echo "$as_me:$LINENO: result: $ac_cv_type_int" >&5
5531 echo "${ECHO_T}$ac_cv_type_int" >&6; }
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
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
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_;
5556 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
5563 rm -f conftest.$ac_objext
5564 if { (ac_try="$ac_compile"
5566 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5567 *) ac_try_echo=$ac_try;;
5569 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5570 (eval "$ac_compile") 2>conftest.er1
5572 grep -v '^ *+' conftest.er1 >conftest.err
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;;
5582 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5583 (eval "$ac_try") 2>&5
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;;
5592 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5593 (eval "$ac_try") 2>&5
5595 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5596 (exit $ac_status); }; }; then
5599 cat >conftest.$ac_ext <<_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_;
5610 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
5617 rm -f conftest.$ac_objext
5618 if { (ac_try="$ac_compile"
5620 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5621 *) ac_try_echo=$ac_try;;
5623 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5624 (eval "$ac_compile") 2>conftest.er1
5626 grep -v '^ *+' conftest.er1 >conftest.err
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;;
5636 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5637 (eval "$ac_try") 2>&5
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;;
5646 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5647 (eval "$ac_try") 2>&5
5649 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5650 (exit $ac_status); }; }; then
5651 ac_hi=$ac_mid; break
5653 echo "$as_me: failed program was:" >&5
5654 sed 's/^/| /' conftest.$ac_ext >&5
5656 ac_lo=`expr $ac_mid + 1`
5657 if test $ac_lo -le $ac_mid; then
5661 ac_mid=`expr 2 '*' $ac_mid + 1`
5664 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5667 echo "$as_me: failed program was:" >&5
5668 sed 's/^/| /' conftest.$ac_ext >&5
5670 cat >conftest.$ac_ext <<_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_;
5681 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
5688 rm -f conftest.$ac_objext
5689 if { (ac_try="$ac_compile"
5691 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5692 *) ac_try_echo=$ac_try;;
5694 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5695 (eval "$ac_compile") 2>conftest.er1
5697 grep -v '^ *+' conftest.er1 >conftest.err
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;;
5707 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5708 (eval "$ac_try") 2>&5
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;;
5717 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5718 (eval "$ac_try") 2>&5
5720 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5721 (exit $ac_status); }; }; then
5724 cat >conftest.$ac_ext <<_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_;
5735 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
5742 rm -f conftest.$ac_objext
5743 if { (ac_try="$ac_compile"
5745 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5746 *) ac_try_echo=$ac_try;;
5748 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5749 (eval "$ac_compile") 2>conftest.er1
5751 grep -v '^ *+' conftest.er1 >conftest.err
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;;
5761 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5762 (eval "$ac_try") 2>&5
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;;
5771 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5772 (eval "$ac_try") 2>&5
5774 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5775 (exit $ac_status); }; }; then
5776 ac_lo=$ac_mid; break
5778 echo "$as_me: failed program was:" >&5
5779 sed 's/^/| /' conftest.$ac_ext >&5
5781 ac_hi=`expr '(' $ac_mid ')' - 1`
5782 if test $ac_mid -le $ac_hi; then
5786 ac_mid=`expr 2 '*' $ac_mid`
5789 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5792 echo "$as_me: failed program was:" >&5
5793 sed 's/^/| /' conftest.$ac_ext >&5
5798 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
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
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_;
5816 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
5823 rm -f conftest.$ac_objext
5824 if { (ac_try="$ac_compile"
5826 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5827 *) ac_try_echo=$ac_try;;
5829 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5830 (eval "$ac_compile") 2>conftest.er1
5832 grep -v '^ *+' conftest.er1 >conftest.err
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;;
5842 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5843 (eval "$ac_try") 2>&5
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;;
5852 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5853 (eval "$ac_try") 2>&5
5855 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5856 (exit $ac_status); }; }; then
5859 echo "$as_me: failed program was:" >&5
5860 sed 's/^/| /' conftest.$ac_ext >&5
5862 ac_lo=`expr '(' $ac_mid ')' + 1`
5865 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
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; }; } ;;
5876 cat >conftest.$ac_ext <<_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_)); }
5892 FILE *f = fopen ("conftest.val", "w");
5895 if (((long int) (sizeof (ac__type_sizeof_))) < 0)
5897 long int i = longval ();
5898 if (i != ((long int) (sizeof (ac__type_sizeof_))))
5900 fprintf (f, "%ld\n", i);
5904 unsigned long int i = ulongval ();
5905 if (i != ((long int) (sizeof (ac__type_sizeof_))))
5907 fprintf (f, "%lu\n", i);
5909 return ferror (f) || fclose (f) != 0;
5915 rm -f conftest$ac_exeext
5916 if { (ac_try="$ac_link"
5918 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5919 *) ac_try_echo=$ac_try;;
5921 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5922 (eval "$ac_link") 2>&5
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;;
5930 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5931 (eval "$ac_try") 2>&5
5933 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5934 (exit $ac_status); }; }; then
5935 ac_cv_sizeof_int=`cat conftest.val`
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
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; }; }
5948 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
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
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
5967 cat >conftest.$ac_ext <<_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_;
5978 if ((ac__type_new_ *) 0)
5980 if (sizeof (ac__type_new_))
5986 rm -f conftest.$ac_objext
5987 if { (ac_try="$ac_compile"
5989 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5990 *) ac_try_echo=$ac_try;;
5992 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5993 (eval "$ac_compile") 2>conftest.er1
5995 grep -v '^ *+' conftest.er1 >conftest.err
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;;
6005 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6006 (eval "$ac_try") 2>&5
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;;
6015 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6016 (eval "$ac_try") 2>&5
6018 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6019 (exit $ac_status); }; }; then
6022 echo "$as_me: failed program was:" >&5
6023 sed 's/^/| /' conftest.$ac_ext >&5
6028 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6030 { echo "$as_me:$LINENO: result: $ac_cv_type_long" >&5
6031 echo "${ECHO_T}$ac_cv_type_long" >&6; }
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
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
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_;
6056 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
6063 rm -f conftest.$ac_objext
6064 if { (ac_try="$ac_compile"
6066 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6067 *) ac_try_echo=$ac_try;;
6069 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6070 (eval "$ac_compile") 2>conftest.er1
6072 grep -v '^ *+' conftest.er1 >conftest.err
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;;
6082 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6083 (eval "$ac_try") 2>&5
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;;
6092 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6093 (eval "$ac_try") 2>&5
6095 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6096 (exit $ac_status); }; }; then
6099 cat >conftest.$ac_ext <<_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_;
6110 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
6117 rm -f conftest.$ac_objext
6118 if { (ac_try="$ac_compile"
6120 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6121 *) ac_try_echo=$ac_try;;
6123 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6124 (eval "$ac_compile") 2>conftest.er1
6126 grep -v '^ *+' conftest.er1 >conftest.err
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;;
6136 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6137 (eval "$ac_try") 2>&5
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;;
6146 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6147 (eval "$ac_try") 2>&5
6149 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6150 (exit $ac_status); }; }; then
6151 ac_hi=$ac_mid; break
6153 echo "$as_me: failed program was:" >&5
6154 sed 's/^/| /' conftest.$ac_ext >&5
6156 ac_lo=`expr $ac_mid + 1`
6157 if test $ac_lo -le $ac_mid; then
6161 ac_mid=`expr 2 '*' $ac_mid + 1`
6164 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6167 echo "$as_me: failed program was:" >&5
6168 sed 's/^/| /' conftest.$ac_ext >&5
6170 cat >conftest.$ac_ext <<_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_;
6181 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
6188 rm -f conftest.$ac_objext
6189 if { (ac_try="$ac_compile"
6191 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6192 *) ac_try_echo=$ac_try;;
6194 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6195 (eval "$ac_compile") 2>conftest.er1
6197 grep -v '^ *+' conftest.er1 >conftest.err
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;;
6207 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6208 (eval "$ac_try") 2>&5
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;;
6217 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6218 (eval "$ac_try") 2>&5
6220 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6221 (exit $ac_status); }; }; then
6224 cat >conftest.$ac_ext <<_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_;
6235 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
6242 rm -f conftest.$ac_objext
6243 if { (ac_try="$ac_compile"
6245 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6246 *) ac_try_echo=$ac_try;;
6248 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6249 (eval "$ac_compile") 2>conftest.er1
6251 grep -v '^ *+' conftest.er1 >conftest.err
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;;
6261 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6262 (eval "$ac_try") 2>&5
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;;
6271 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6272 (eval "$ac_try") 2>&5
6274 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6275 (exit $ac_status); }; }; then
6276 ac_lo=$ac_mid; break
6278 echo "$as_me: failed program was:" >&5
6279 sed 's/^/| /' conftest.$ac_ext >&5
6281 ac_hi=`expr '(' $ac_mid ')' - 1`
6282 if test $ac_mid -le $ac_hi; then
6286 ac_mid=`expr 2 '*' $ac_mid`
6289 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6292 echo "$as_me: failed program was:" >&5
6293 sed 's/^/| /' conftest.$ac_ext >&5
6298 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
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
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_;
6316 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
6323 rm -f conftest.$ac_objext
6324 if { (ac_try="$ac_compile"
6326 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6327 *) ac_try_echo=$ac_try;;
6329 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6330 (eval "$ac_compile") 2>conftest.er1
6332 grep -v '^ *+' conftest.er1 >conftest.err
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;;
6342 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6343 (eval "$ac_try") 2>&5
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;;
6352 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6353 (eval "$ac_try") 2>&5
6355 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6356 (exit $ac_status); }; }; then
6359 echo "$as_me: failed program was:" >&5
6360 sed 's/^/| /' conftest.$ac_ext >&5
6362 ac_lo=`expr '(' $ac_mid ')' + 1`
6365 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
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; }; } ;;
6376 cat >conftest.$ac_ext <<_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_)); }
6392 FILE *f = fopen ("conftest.val", "w");
6395 if (((long int) (sizeof (ac__type_sizeof_))) < 0)
6397 long int i = longval ();
6398 if (i != ((long int) (sizeof (ac__type_sizeof_))))
6400 fprintf (f, "%ld\n", i);
6404 unsigned long int i = ulongval ();
6405 if (i != ((long int) (sizeof (ac__type_sizeof_))))
6407 fprintf (f, "%lu\n", i);
6409 return ferror (f) || fclose (f) != 0;
6415 rm -f conftest$ac_exeext
6416 if { (ac_try="$ac_link"
6418 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6419 *) ac_try_echo=$ac_try;;
6421 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6422 (eval "$ac_link") 2>&5
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;;
6430 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6431 (eval "$ac_try") 2>&5
6433 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6434 (exit $ac_status); }; }; then
6435 ac_cv_sizeof_long=`cat conftest.val`
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
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; }; }
6448 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
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
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
6468 cat >conftest.$ac_ext <<_ACEOF
6471 cat confdefs.h >>conftest.$ac_ext
6472 cat >>conftest.$ac_ext <<_ACEOF
6473 /* end confdefs.h. */
6474 $ac_includes_default
6478 static int test_array [1 - 2 * !(((char) -1) < 0)];
6485 rm -f conftest.$ac_objext
6486 if { (ac_try="$ac_compile"
6488 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6489 *) ac_try_echo=$ac_try;;
6491 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6492 (eval "$ac_compile") 2>conftest.er1
6494 grep -v '^ *+' conftest.er1 >conftest.err
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;;
6504 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6505 (eval "$ac_try") 2>&5
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;;
6514 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6515 (eval "$ac_try") 2>&5
6517 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6518 (exit $ac_status); }; }; then
6519 ac_cv_c_char_unsigned=no
6521 echo "$as_me: failed program was:" >&5
6522 sed 's/^/| /' conftest.$ac_ext >&5
6524 ac_cv_c_char_unsigned=yes
6527 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
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
6541 if expr "$ac_cv_sizeof_char" '>=' "$1" >/dev/null; then
6545 if expr "$ac_cv_sizeof_short" '>=' "$1" >/dev/null; then
6549 if expr "$ac_cv_sizeof_int" '>=' "$1" >/dev/null; then
6553 if expr "$ac_cv_sizeof_long" '>=' "$1" >/dev/null; then
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"
6566 TYPE_BYTE=$TYPE_CHAR
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; }
6581 cat >>confdefs.h <<_ACEOF
6582 #define TYPE_BYTE $TYPE_BYTE
6585 cat >>confdefs.h <<_ACEOF
6586 #define TYPE_WORD $TYPE_WORD
6589 cat >>confdefs.h <<_ACEOF
6590 #define TYPE_DWORD $TYPE_DWORD
6594 cat >>confdefs.h <<_ACEOF
6595 #define TYPE_UBYTE unsigned $TYPE_CHAR
6598 cat >>confdefs.h <<_ACEOF
6599 #define TYPE_UWORD unsigned $TYPE_WORD
6602 cat >>confdefs.h <<_ACEOF
6603 #define TYPE_UDWORD unsigned $TYPE_DWORD
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
6612 # See if sys/param.h defines the BYTE_ORDER macro.
6613 cat >conftest.$ac_ext <<_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>
6625 #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
6633 rm -f conftest.$ac_objext
6634 if { (ac_try="$ac_compile"
6636 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6637 *) ac_try_echo=$ac_try;;
6639 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6640 (eval "$ac_compile") 2>conftest.er1
6642 grep -v '^ *+' conftest.er1 >conftest.err
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;;
6652 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6653 (eval "$ac_try") 2>&5
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;;
6662 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6663 (eval "$ac_try") 2>&5
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
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>
6680 #if BYTE_ORDER != BIG_ENDIAN
6688 rm -f conftest.$ac_objext
6689 if { (ac_try="$ac_compile"
6691 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6692 *) ac_try_echo=$ac_try;;
6694 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6695 (eval "$ac_compile") 2>conftest.er1
6697 grep -v '^ *+' conftest.er1 >conftest.err
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;;
6707 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6708 (eval "$ac_try") 2>&5
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;;
6717 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6718 (eval "$ac_try") 2>&5
6720 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6721 (exit $ac_status); }; }; then
6722 ac_cv_c_bigendian=yes
6724 echo "$as_me: failed program was:" >&5
6725 sed 's/^/| /' conftest.$ac_ext >&5
6727 ac_cv_c_bigendian=no
6730 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6732 echo "$as_me: failed program was:" >&5
6733 sed 's/^/| /' conftest.$ac_ext >&5
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
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; }
6754 _ascii (); _ebcdic ();
6759 rm -f conftest.$ac_objext
6760 if { (ac_try="$ac_compile"
6762 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6763 *) ac_try_echo=$ac_try;;
6765 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6766 (eval "$ac_compile") 2>conftest.er1
6768 grep -v '^ *+' conftest.er1 >conftest.err
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;;
6778 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6779 (eval "$ac_try") 2>&5
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;;
6788 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6789 (eval "$ac_try") 2>&5
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
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
6800 # finding both strings is unlikely to happen, but who knows?
6801 ac_cv_c_bigendian=unknown
6805 echo "$as_me: failed program was:" >&5
6806 sed 's/^/| /' conftest.$ac_ext >&5
6811 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6813 cat >conftest.$ac_ext <<_ACEOF
6816 cat confdefs.h >>conftest.$ac_ext
6817 cat >>conftest.$ac_ext <<_ACEOF
6818 /* end confdefs.h. */
6819 $ac_includes_default
6824 /* Are we little or big endian? From Harbison&Steele. */
6828 char c[sizeof (long int)];
6831 return u.c[sizeof (long int) - 1] == 1;
6837 rm -f conftest$ac_exeext
6838 if { (ac_try="$ac_link"
6840 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6841 *) ac_try_echo=$ac_try;;
6843 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6844 (eval "$ac_link") 2>&5
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;;
6852 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6853 (eval "$ac_try") 2>&5
6855 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6856 (exit $ac_status); }; }; then
6857 ac_cv_c_bigendian=no
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
6864 ac_cv_c_bigendian=yes
6866 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6872 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
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
6879 cat >>confdefs.h <<\_ACEOF
6880 #define WORDS_BIGENDIAN 1
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; }; } ;;
6894 # Set standard installation paths
6895 # ===========================================================================
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()
6902 # In sdccconf.h the '/' in paths can be replaced by "\\" (normalized), if
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.
6908 if test "x${sdccconf_h_dir_separator}" = "x"; then
6909 sdccconf_h_dir_separator="/"
6915 # include_dir_suffix:
6916 # *nix default: "sdcc/include"
6919 if test "${include_dir_suffix}" = ""; then
6920 include_dir_suffix="sdcc/include"
6925 # *nix default: "sdcc/lib"
6927 if test "${lib_dir_suffix}" = ""; then
6928 lib_dir_suffix="sdcc/lib"
6933 # *nix default: "${datadir}/sdcc/doc"
6935 if test "${docdir}" = ""; then
6936 docdir="\${datadir}"/sdcc/doc
6945 cat >>confdefs.h <<_ACEOF
6946 #define DIR_SEPARATOR_STRING "${sdccconf_h_dir_separator}"
6949 cat >>confdefs.h <<_ACEOF
6950 #define DIR_SEPARATOR_CHAR '${sdccconf_h_dir_separator}'
6955 # default: "NONE", ${ac_default_prefix}: "/usr/local"
6957 test "x$prefix" = xNONE && prefix="$ac_default_prefix"
6958 test "x$exec_prefix" = xNONE && exec_prefix='${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`
6965 ac_ndu=$expanded_prefix
6968 :*[\\/]:) ac_ndu=`echo "$ac_ndu" | sed 's,[\\/]*$,,'` ;;
6971 case $sdccconf_h_dir_separator in
6973 *\\*) ac_ndu=`echo "$ac_ndu" | sed 's,\(.\)[\\/][\\/]*,\1\\\\\\\\,g
6974 s,^[\\/],\\\\\\\\,'` ;;
6976 *) ac_ndu=`echo "$ac_ndu" | sed 's,\(.\)[\\/][\\/]*,\1/,g'` ;;
6978 cat >>confdefs.h <<_ACEOF
6979 #define PREFIX "${ac_ndu}"
6985 # default: "${prefix}"
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`
6995 ac_ndu=$expanded_exec_prefix
6998 :*[\\/]:) ac_ndu=`echo "$ac_ndu" | sed 's,[\\/]*$,,'` ;;
7001 case $sdccconf_h_dir_separator in
7003 *\\*) ac_ndu=`echo "$ac_ndu" | sed 's,\(.\)[\\/][\\/]*,\1\\\\\\\\,g
7004 s,^[\\/],\\\\\\\\,'` ;;
7006 *) ac_ndu=`echo "$ac_ndu" | sed 's,\(.\)[\\/][\\/]*,\1/,g'` ;;
7008 cat >>confdefs.h <<_ACEOF
7009 #define EXEC_PREFIX "${ac_ndu}"
7015 # default: "${exec_prefix}/bin"
7017 test "x$prefix" = xNONE && prefix="$ac_default_prefix"
7018 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
7020 test "x$ac_expand" = xNONE && ac_expand="$"NONE""
7021 ac_expand=`eval echo $ac_expand`
7022 expanded_bindir=`eval echo $ac_expand`
7025 ac_ndu=$expanded_bindir
7028 :*[\\/]:) ac_ndu=`echo "$ac_ndu" | sed 's,[\\/]*$,,'` ;;
7031 case $sdccconf_h_dir_separator in
7033 *\\*) ac_ndu=`echo "$ac_ndu" | sed 's,\(.\)[\\/][\\/]*,\1\\\\\\\\,g
7034 s,^[\\/],\\\\\\\\,'` ;;
7036 *) ac_ndu=`echo "$ac_ndu" | sed 's,\(.\)[\\/][\\/]*,\1/,g'` ;;
7038 cat >>confdefs.h <<_ACEOF
7039 #define BINDIR "${ac_ndu}"
7045 # default: "${prefix}/share"
7047 test "x$prefix" = xNONE && prefix="$ac_default_prefix"
7048 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
7050 test "x$ac_expand" = xNONE && ac_expand="$"NONE""
7051 ac_expand=`eval echo $ac_expand`
7052 expanded_datadir=`eval echo $ac_expand`
7055 ac_ndu=$expanded_datadir
7058 :*[\\/]:) ac_ndu=`echo "$ac_ndu" | sed 's,[\\/]*$,,'` ;;
7061 case $sdccconf_h_dir_separator in
7063 *\\*) ac_ndu=`echo "$ac_ndu" | sed 's,\(.\)[\\/][\\/]*,\1\\\\\\\\,g
7064 s,^[\\/],\\\\\\\\,'` ;;
7066 *) ac_ndu=`echo "$ac_ndu" | sed 's,\(.\)[\\/][\\/]*,\1/,g'` ;;
7068 cat >>confdefs.h <<_ACEOF
7069 #define DATADIR "${ac_ndu}"
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,[\\/]*$,,'` ;;
7081 case $sdccconf_h_dir_separator in
7083 *\\*) norm_inc_dir_suffix=`echo "$norm_inc_dir_suffix" | sed 's,\(.\)[\\/][\\/]*,\1\\\\\\\\,g
7084 s,^[\\/],\\\\\\\\,'` ;;
7086 *) norm_inc_dir_suffix=`echo "$norm_inc_dir_suffix" | sed 's,\(.\)[\\/][\\/]*,\1/,g'` ;;
7088 cat >>confdefs.h <<_ACEOF
7089 #define INCLUDE_DIR_SUFFIX DIR_SEPARATOR_STRING "${norm_inc_dir_suffix}"
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,[\\/]*$,,'` ;;
7098 case $sdccconf_h_dir_separator in
7100 *\\*) norm_lib_dir_suffix=`echo "$norm_lib_dir_suffix" | sed 's,\(.\)[\\/][\\/]*,\1\\\\\\\\,g
7101 s,^[\\/],\\\\\\\\,'` ;;
7103 *) norm_lib_dir_suffix=`echo "$norm_lib_dir_suffix" | sed 's,\(.\)[\\/][\\/]*,\1/,g'` ;;
7105 cat >>confdefs.h <<_ACEOF
7106 #define LIB_DIR_SUFFIX DIR_SEPARATOR_STRING "${norm_lib_dir_suffix}"
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}"
7119 while test "$_lcl_receval_old" != "$_lcl_receval"; do
7120 _lcl_receval_old="$_lcl_receval"
7121 eval _lcl_receval="\"$_lcl_receval\""
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}"
7128 while test "$_lcl_receval_old" != "$_lcl_receval"; do
7129 _lcl_receval_old="$_lcl_receval"
7130 eval _lcl_receval="\"$_lcl_receval\""
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,[\\/]*$,,'` ;;
7141 *\\*) _lcl_from=`echo "$_lcl_from" | sed 's,\(.\)[\\/][\\/]*,\1\\\\\\\\,g
7142 s,^[\\/],\\\\\\\\,'` ;;
7144 *) _lcl_from=`echo "$_lcl_from" | sed 's,\(.\)[\\/][\\/]*,\1/,g'` ;;
7146 case ":$_lcl_to:" in
7148 :*[\\/]:) _lcl_to=`echo "$_lcl_to" | sed 's,[\\/]*$,,'` ;;
7153 *\\*) _lcl_to=`echo "$_lcl_to" | sed 's,\(.\)[\\/][\\/]*,\1\\\\\\\\,g
7154 s,^[\\/],\\\\\\\\,'` ;;
7156 *) _lcl_to=`echo "$_lcl_to" | sed 's,\(.\)[\\/][\\/]*,\1/,g'` ;;
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"
7167 _lcl_second_prefix_match=0
7171 _lcl_first_suffix=`expr "x$_lcl_from" : "x$_lcl_common_prefix/*\(.*\)"`
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"
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,[\\/]*$,,'` ;;
7188 case "$_lcl_notation" in
7190 *\\*) _lcl_result_tmp=`echo "$_lcl_result_tmp" | sed 's,\(.\)[\\/][\\/]*,\1\\\\\\\\,g
7191 s,^[\\/],\\\\\\\\,'` ;;
7193 *) _lcl_result_tmp=`echo "$_lcl_result_tmp" | sed 's,\(.\)[\\/][\\/]*,\1/,g'` ;;
7195 eval $_lcl_result_var='$_lcl_result_tmp'
7197 case ":$bin2data_dir:" in
7198 ::) bin2data_dir='.' ;;
7199 :*[\\/]:) bin2data_dir=`echo "$bin2data_dir" | sed 's,[\\/]*$,,'` ;;
7202 case $sdccconf_h_dir_separator in
7204 *\\*) bin2data_dir=`echo "$bin2data_dir" | sed 's,\(.\)[\\/][\\/]*,\1\\\\\\\\,g
7205 s,^[\\/],\\\\\\\\,'` ;;
7207 *) bin2data_dir=`echo "$bin2data_dir" | sed 's,\(.\)[\\/][\\/]*,\1/,g'` ;;
7209 cat >>confdefs.h <<_ACEOF
7210 #define BIN2DATA_DIR DIR_SEPARATOR_STRING "${bin2data_dir}"
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}"
7222 while test "$_lcl_receval_old" != "$_lcl_receval"; do
7223 _lcl_receval_old="$_lcl_receval"
7224 eval _lcl_receval="\"$_lcl_receval\""
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}"
7231 while test "$_lcl_receval_old" != "$_lcl_receval"; do
7232 _lcl_receval_old="$_lcl_receval"
7233 eval _lcl_receval="\"$_lcl_receval\""
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,[\\/]*$,,'` ;;
7244 *\\*) _lcl_from=`echo "$_lcl_from" | sed 's,\(.\)[\\/][\\/]*,\1\\\\\\\\,g
7245 s,^[\\/],\\\\\\\\,'` ;;
7247 *) _lcl_from=`echo "$_lcl_from" | sed 's,\(.\)[\\/][\\/]*,\1/,g'` ;;
7249 case ":$_lcl_to:" in
7251 :*[\\/]:) _lcl_to=`echo "$_lcl_to" | sed 's,[\\/]*$,,'` ;;
7256 *\\*) _lcl_to=`echo "$_lcl_to" | sed 's,\(.\)[\\/][\\/]*,\1\\\\\\\\,g
7257 s,^[\\/],\\\\\\\\,'` ;;
7259 *) _lcl_to=`echo "$_lcl_to" | sed 's,\(.\)[\\/][\\/]*,\1/,g'` ;;
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"
7270 _lcl_second_prefix_match=0
7274 _lcl_first_suffix=`expr "x$_lcl_from" : "x$_lcl_common_prefix/*\(.*\)"`
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"
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,[\\/]*$,,'` ;;
7291 case "$_lcl_notation" in
7293 *\\*) _lcl_result_tmp=`echo "$_lcl_result_tmp" | sed 's,\(.\)[\\/][\\/]*,\1\\\\\\\\,g
7294 s,^[\\/],\\\\\\\\,'` ;;
7296 *) _lcl_result_tmp=`echo "$_lcl_result_tmp" | sed 's,\(.\)[\\/][\\/]*,\1/,g'` ;;
7298 eval $_lcl_result_var='$_lcl_result_tmp'
7300 case ":$prefix2bin_dir:" in
7301 ::) prefix2bin_dir='.' ;;
7302 :*[\\/]:) prefix2bin_dir=`echo "$prefix2bin_dir" | sed 's,[\\/]*$,,'` ;;
7305 case $sdccconf_h_dir_separator in
7307 *\\*) prefix2bin_dir=`echo "$prefix2bin_dir" | sed 's,\(.\)[\\/][\\/]*,\1\\\\\\\\,g
7308 s,^[\\/],\\\\\\\\,'` ;;
7310 *) prefix2bin_dir=`echo "$prefix2bin_dir" | sed 's,\(.\)[\\/][\\/]*,\1/,g'` ;;
7312 cat >>confdefs.h <<_ACEOF
7313 #define PREFIX2BIN_DIR DIR_SEPARATOR_STRING "${prefix2bin_dir}"
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}"
7325 while test "$_lcl_receval_old" != "$_lcl_receval"; do
7326 _lcl_receval_old="$_lcl_receval"
7327 eval _lcl_receval="\"$_lcl_receval\""
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}"
7334 while test "$_lcl_receval_old" != "$_lcl_receval"; do
7335 _lcl_receval_old="$_lcl_receval"
7336 eval _lcl_receval="\"$_lcl_receval\""
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,[\\/]*$,,'` ;;
7347 *\\*) _lcl_from=`echo "$_lcl_from" | sed 's,\(.\)[\\/][\\/]*,\1\\\\\\\\,g
7348 s,^[\\/],\\\\\\\\,'` ;;
7350 *) _lcl_from=`echo "$_lcl_from" | sed 's,\(.\)[\\/][\\/]*,\1/,g'` ;;
7352 case ":$_lcl_to:" in
7354 :*[\\/]:) _lcl_to=`echo "$_lcl_to" | sed 's,[\\/]*$,,'` ;;
7359 *\\*) _lcl_to=`echo "$_lcl_to" | sed 's,\(.\)[\\/][\\/]*,\1\\\\\\\\,g
7360 s,^[\\/],\\\\\\\\,'` ;;
7362 *) _lcl_to=`echo "$_lcl_to" | sed 's,\(.\)[\\/][\\/]*,\1/,g'` ;;
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"
7373 _lcl_second_prefix_match=0
7377 _lcl_first_suffix=`expr "x$_lcl_from" : "x$_lcl_common_prefix/*\(.*\)"`
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"
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,[\\/]*$,,'` ;;
7394 case "$_lcl_notation" in
7396 *\\*) _lcl_result_tmp=`echo "$_lcl_result_tmp" | sed 's,\(.\)[\\/][\\/]*,\1\\\\\\\\,g
7397 s,^[\\/],\\\\\\\\,'` ;;
7399 *) _lcl_result_tmp=`echo "$_lcl_result_tmp" | sed 's,\(.\)[\\/][\\/]*,\1/,g'` ;;
7401 eval $_lcl_result_var='$_lcl_result_tmp'
7403 case ":$prefix2data_dir:" in
7404 ::) prefix2data_dir='.' ;;
7405 :*[\\/]:) prefix2data_dir=`echo "$prefix2data_dir" | sed 's,[\\/]*$,,'` ;;
7408 case $sdccconf_h_dir_separator in
7410 *\\*) prefix2data_dir=`echo "$prefix2data_dir" | sed 's,\(.\)[\\/][\\/]*,\1\\\\\\\\,g
7411 s,^[\\/],\\\\\\\\,'` ;;
7413 *) prefix2data_dir=`echo "$prefix2data_dir" | sed 's,\(.\)[\\/][\\/]*,\1/,g'` ;;
7415 if test "${prefix2data_dir}" = "."; then
7416 # small optimization for Mingw32; otherwise Borut will complain ;-)
7417 cat >>confdefs.h <<_ACEOF
7418 #define PREFIX2DATA_DIR ""
7422 cat >>confdefs.h <<_ACEOF
7423 #define PREFIX2DATA_DIR DIR_SEPARATOR_STRING "${prefix2data_dir}"
7429 cat >>confdefs.h <<_ACEOF
7430 #define STD_LIB "libsdcc"
7433 cat >>confdefs.h <<_ACEOF
7434 #define STD_INT_LIB "libint"
7437 cat >>confdefs.h <<_ACEOF
7438 #define STD_LONG_LIB "liblong"
7441 cat >>confdefs.h <<_ACEOF
7442 #define STD_FP_LIB "libfloat"
7445 cat >>confdefs.h <<_ACEOF
7446 #define STD_DS390_LIB "libds390"
7449 cat >>confdefs.h <<_ACEOF
7450 #define STD_DS400_LIB "libds400"
7453 cat >>confdefs.h <<_ACEOF
7454 #define STD_XA51_LIB "libxa51"
7458 # SDCC runtime environment variables
7459 sdcc_dir_name="SDCC_HOME"
7460 cat >>confdefs.h <<_ACEOF
7461 #define SDCC_DIR_NAME "${sdcc_dir_name}"
7465 sdcc_include_name="SDCC_INCLUDE"
7466 cat >>confdefs.h <<_ACEOF
7467 #define SDCC_INCLUDE_NAME "${sdcc_include_name}"
7471 sdcc_lib_name="SDCC_LIB"
7472 cat >>confdefs.h <<_ACEOF
7473 #define SDCC_LIB_NAME "${sdcc_lib_name}"
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
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
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
7498 # Now handle the port selection
7499 # ===========================================================================
7500 rm -f ports.all ports.build
7502 # Check whether --enable-mcs51-port was given.
7503 if test "${enable_mcs51_port+set}" = set; then
7504 enableval=$enable_mcs51_port;
7508 if test "$enable_mcs51_port" = "no"; then
7511 enable_mcs51_port="yes"
7515 cat >>confdefs.h <<_ACEOF
7516 #define OPT_DISABLE_MCS51 $OPT_DISABLE_MCS51
7521 echo mcs51 >>ports.all
7522 if test $OPT_DISABLE_MCS51 = 0; then
7523 echo mcs51 >>ports.build
7527 # Check whether --enable-gbz80-port was given.
7528 if test "${enable_gbz80_port+set}" = set; then
7529 enableval=$enable_gbz80_port;
7533 if test "$enable_gbz80_port" = "no"; then
7536 enable_gbz80_port="yes"
7540 cat >>confdefs.h <<_ACEOF
7541 #define OPT_DISABLE_GBZ80 $OPT_DISABLE_GBZ80
7546 echo z80 >>ports.all
7547 if test $OPT_DISABLE_GBZ80 = 0; then
7548 echo z80 >>ports.build
7552 # Check whether --enable-z80-port was given.
7553 if test "${enable_z80_port+set}" = set; then
7554 enableval=$enable_z80_port;
7558 if test "$enable_z80_port" = "no"; then
7561 enable_z80_port="yes"
7565 cat >>confdefs.h <<_ACEOF
7566 #define OPT_DISABLE_Z80 $OPT_DISABLE_Z80
7571 echo z80 >>ports.all
7572 if test $OPT_DISABLE_Z80 = 0; then
7573 echo z80 >>ports.build
7577 # Check whether --enable-avr-port was given.
7578 if test "${enable_avr_port+set}" = set; then
7579 enableval=$enable_avr_port;
7583 if test "$enable_avr_port" = "no"; then
7586 enable_avr_port="yes"
7590 cat >>confdefs.h <<_ACEOF
7591 #define OPT_DISABLE_AVR $OPT_DISABLE_AVR
7596 echo avr >>ports.all
7597 if test $OPT_DISABLE_AVR = 0; then
7598 echo avr >>ports.build
7602 # Check whether --enable-ds390-port was given.
7603 if test "${enable_ds390_port+set}" = set; then
7604 enableval=$enable_ds390_port;
7608 if test "$enable_ds390_port" = "no"; then
7611 enable_ds390_port="yes"
7615 cat >>confdefs.h <<_ACEOF
7616 #define OPT_DISABLE_DS390 $OPT_DISABLE_DS390
7621 echo ds390 >>ports.all
7622 if test $OPT_DISABLE_DS390 = 0; then
7623 echo ds390 >>ports.build
7626 cat >>confdefs.h <<_ACEOF
7627 #define OPT_DISABLE_TININative $OPT_DISABLE_DS390
7631 # Check whether --enable-ds400-port was given.
7632 if test "${enable_ds400_port+set}" = set; then
7633 enableval=$enable_ds400_port;
7637 if test "$enable_ds400_port" = "no"; then
7640 enable_ds400_port="yes"
7644 cat >>confdefs.h <<_ACEOF
7645 #define OPT_DISABLE_DS400 $OPT_DISABLE_DS400
7650 echo ds400 >>ports.all
7651 if test $OPT_DISABLE_DS400 = 0; then
7652 echo ds400 >>ports.build
7656 # Check whether --enable-pic-port was given.
7657 if test "${enable_pic_port+set}" = set; then
7658 enableval=$enable_pic_port;
7662 if test "$enable_pic_port" = "no"; then
7665 enable_pic_port="yes"
7669 cat >>confdefs.h <<_ACEOF
7670 #define OPT_DISABLE_PIC $OPT_DISABLE_PIC
7675 echo pic >>ports.all
7676 if test $OPT_DISABLE_PIC = 0; then
7677 echo pic >>ports.build
7681 # Check whether --enable-pic16-port was given.
7682 if test "${enable_pic16_port+set}" = set; then
7683 enableval=$enable_pic16_port;
7687 if test "$enable_pic16_port" = "no"; then
7690 enable_pic16_port="yes"
7694 cat >>confdefs.h <<_ACEOF
7695 #define OPT_DISABLE_PIC16 $OPT_DISABLE_PIC16
7700 echo pic16 >>ports.all
7701 if test $OPT_DISABLE_PIC16 = 0; then
7702 echo pic16 >>ports.build
7706 # Check whether --enable-xa51-port was given.
7707 if test "${enable_xa51_port+set}" = set; then
7708 enableval=$enable_xa51_port;
7712 if test "$enable_xa51_port" = "no"; then
7715 enable_xa51_port="yes"
7719 cat >>confdefs.h <<_ACEOF
7720 #define OPT_DISABLE_XA51 $OPT_DISABLE_XA51
7725 echo xa51 >>ports.all
7726 if test $OPT_DISABLE_XA51 = 0; then
7727 echo xa51 >>ports.build
7731 # Check whether --enable-hc08-port was given.
7732 if test "${enable_hc08_port+set}" = set; then
7733 enableval=$enable_hc08_port;
7737 if test "$enable_hc08_port" = "no"; then
7740 enable_hc08_port="yes"
7744 cat >>confdefs.h <<_ACEOF
7745 #define OPT_DISABLE_HC08 $OPT_DISABLE_HC08
7750 echo hc08 >>ports.all
7751 if test $OPT_DISABLE_HC08 = 0; then
7752 echo hc08 >>ports.build
7757 # Check whether --enable-ucsim was given.
7758 if test "${enable_ucsim+set}" = set; then
7759 enableval=$enable_ucsim;
7763 arg1=`echo ucsim | sed s/-/_/`
7765 if test "`eval echo \\$enable_$arg1`" = "no"; then
7771 cat >>confdefs.h <<_ACEOF
7772 #define OPT_DISABLE_UCSIM $OPT_DISABLE_UCSIM
7778 # Check whether --enable-device-lib was given.
7779 if test "${enable_device_lib+set}" = set; then
7780 enableval=$enable_device_lib;
7784 arg1=`echo device-lib | sed s/-/_/`
7786 if test "`eval echo \\$enable_$arg1`" = "no"; then
7787 OPT_DISABLE_DEVICE_LIB=1
7789 OPT_DISABLE_DEVICE_LIB=0
7792 cat >>confdefs.h <<_ACEOF
7793 #define OPT_DISABLE_DEVICE_LIB $OPT_DISABLE_DEVICE_LIB
7799 # Check whether --enable-packihx was given.
7800 if test "${enable_packihx+set}" = set; then
7801 enableval=$enable_packihx;
7805 arg1=`echo packihx | sed s/-/_/`
7807 if test "`eval echo \\$enable_$arg1`" = "no"; then
7808 OPT_DISABLE_PACKIHX=1
7810 OPT_DISABLE_PACKIHX=0
7813 cat >>confdefs.h <<_ACEOF
7814 #define OPT_DISABLE_PACKIHX $OPT_DISABLE_PACKIHX
7820 # Check whether --enable-sdcpp was given.
7821 if test "${enable_sdcpp+set}" = set; then
7822 enableval=$enable_sdcpp;
7826 arg1=`echo sdcpp | sed s/-/_/`
7828 if test "`eval echo \\$enable_$arg1`" = "no"; then
7834 cat >>confdefs.h <<_ACEOF
7835 #define OPT_DISABLE_SDCPP $OPT_DISABLE_SDCPP
7841 # Check whether --enable-sdcdb was given.
7842 if test "${enable_sdcdb+set}" = set; then
7843 enableval=$enable_sdcdb;
7847 arg1=`echo sdcdb | sed s/-/_/`
7849 if test "`eval echo \\$enable_$arg1`" = "no"; then
7855 cat >>confdefs.h <<_ACEOF
7856 #define OPT_DISABLE_SDCDB $OPT_DISABLE_SDCDB
7863 # Check whether --enable-doc was given.
7864 if test "${enable_doc+set}" = set; then
7865 enableval=$enable_doc;
7869 if test "$enable_doc" = "yes"; then
7875 cat >>confdefs.h <<_ACEOF
7876 #define OPT_ENABLE_DOC $OPT_ENABLE_DOC
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
7889 if test -n "$LYX"; then
7890 ac_cv_prog_LYX="$LYX" # Let the user override the test.
7892 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
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
7907 test -z "$ac_cv_prog_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; }
7915 { echo "$as_me:$LINENO: result: no" >&5
7916 echo "${ECHO_T}no" >&6; }
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
7927 if test -n "$LATEX2HTML"; then
7928 ac_cv_prog_LATEX2HTML="$LATEX2HTML" # Let the user override the test.
7930 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
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
7945 test -z "$ac_cv_prog_LATEX2HTML" && ac_cv_prog_LATEX2HTML=":"
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; }
7953 { echo "$as_me:$LINENO: result: no" >&5
7954 echo "${ECHO_T}no" >&6; }
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
7965 if test -n "$PDFLATEX"; then
7966 ac_cv_prog_PDFLATEX="$PDFLATEX" # Let the user override the test.
7968 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
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
7983 test -z "$ac_cv_prog_PDFLATEX" && ac_cv_prog_PDFLATEX=":"
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; }
7991 { echo "$as_me:$LINENO: result: no" >&5
7992 echo "${ECHO_T}no" >&6; }
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
8003 if test -n "$PDFOPT"; then
8004 ac_cv_prog_PDFOPT="$PDFOPT" # Let the user override the test.
8006 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
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
8021 test -z "$ac_cv_prog_PDFOPT" && ac_cv_prog_PDFOPT=":"
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; }
8029 { echo "$as_me:$LINENO: result: no" >&5
8030 echo "${ECHO_T}no" >&6; }
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
8041 if test -n "$MAKEINDEX"; then
8042 ac_cv_prog_MAKEINDEX="$MAKEINDEX" # Let the user override the test.
8044 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
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
8059 test -z "$ac_cv_prog_MAKEINDEX" && ac_cv_prog_MAKEINDEX=":"
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; }
8067 { echo "$as_me:$LINENO: result: no" >&5
8068 echo "${ECHO_T}no" >&6; }
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; }; }
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; }; }
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; }; }
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; }; }
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; }; }
8106 # Check whether --enable-libgc was given.
8107 if test "${enable_libgc+set}" = set; then
8108 enableval=$enable_libgc;
8112 if test "$enable_libgc" = "yes"; then
8118 cat >>confdefs.h <<_ACEOF
8119 #define OPT_ENABLE_LIBGC $OPT_ENABLE_LIBGC
8124 if test $OPT_ENABLE_LIBGC = 1; then
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
8131 ac_check_lib_save_LIBS=$LIBS
8133 cat >conftest.$ac_ext <<_ACEOF
8136 cat confdefs.h >>conftest.$ac_ext
8137 cat >>conftest.$ac_ext <<_ACEOF
8138 /* end confdefs.h. */
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. */
8150 return GC_malloc ();
8155 rm -f conftest.$ac_objext conftest$ac_exeext
8156 if { (ac_try="$ac_link"
8158 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8159 *) ac_try_echo=$ac_try;;
8161 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8162 (eval "$ac_link") 2>conftest.er1
8164 grep -v '^ *+' conftest.er1 >conftest.err
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;;
8174 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8175 (eval "$ac_try") 2>&5
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;;
8184 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8185 (eval "$ac_try") 2>&5
8187 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8188 (exit $ac_status); }; }; then
8189 ac_cv_lib_gc_GC_malloc=yes
8191 echo "$as_me: failed program was:" >&5
8192 sed 's/^/| /' conftest.$ac_ext >&5
8194 ac_cv_lib_gc_GC_malloc=no
8197 rm -f core conftest.err conftest.$ac_objext \
8198 conftest$ac_exeext conftest.$ac_ext
8199 LIBS=$ac_check_lib_save_LIBS
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
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; }; }
8220 uniq ports.all ports
8222 uniq ports.build ports
8223 mv ports ports.build
8225 # Generating output files
8226 # ===========================================================================
8227 test $OPT_DISABLE_SDCPP = 0 && subdirs="$subdirs support/cpp2"
8229 test $OPT_DISABLE_PACKIHX = 0 && subdirs="$subdirs support/packihx"
8231 test $OPT_DISABLE_UCSIM = 0 && subdirs="$subdirs sim/ucsim"
8233 test $OPT_DISABLE_SDCDB = 0 && subdirs="$subdirs debugger/mcs51"
8235 ac_config_files="$ac_config_files doc/Makefile"
8238 test $OPT_DISABLE_AVR = 0 && ac_config_files="$ac_config_files src/avr/Makefile"
8241 if test $OPT_DISABLE_DS390 = 0; then
8242 ac_config_files="$ac_config_files src/ds390/Makefile"
8244 test $OPT_DISABLE_DEVICE_LIB = 0 && ac_config_files="$ac_config_files device/lib/ds390/Makefile"
8248 if test $OPT_DISABLE_DS400 = 0; then
8249 ac_config_files="$ac_config_files src/ds400/Makefile"
8251 test $OPT_DISABLE_DEVICE_LIB = 0 && ac_config_files="$ac_config_files device/lib/ds400/Makefile"
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"
8258 test $OPT_DISABLE_DEVICE_LIB = 0 && ac_config_files="$ac_config_files device/lib/hc08/Makefile"
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"
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"
8269 if test $OPT_DISABLE_PIC = 0; then
8270 ac_config_files="$ac_config_files src/pic/Makefile"
8272 test $OPT_DISABLE_DEVICE_LIB = 0 && subdirs="$subdirs device/lib/pic"
8275 if test $OPT_DISABLE_PIC16 = 0; then
8276 ac_config_files="$ac_config_files src/pic16/Makefile"
8278 test $OPT_DISABLE_DEVICE_LIB = 0 && subdirs="$subdirs device/lib/pic16"
8282 test $OPT_DISABLE_XA51 = 0 && ac_config_files="$ac_config_files src/xa51/Makefile"
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"
8288 test $OPT_DISABLE_DEVICE_LIB = 0 && ac_config_files="$ac_config_files device/lib/z80/Makefile device/lib/gbz80/Makefile"
8292 test $OPT_DISABLE_DEVICE_LIB = 0 && ac_config_files="$ac_config_files device/lib/Makefile"
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"
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.
8304 # config.status only pays attention to the cache file if you give it
8305 # the --recheck option to rerun configure.
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
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.
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
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;} ;;
8328 _ | IFS | as_nl) ;; #(
8329 *) $as_unset $ac_var ;;
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 \).
8341 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
8344 # `set' quotes correctly as required by POSIX, so do not add quotes.
8345 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
8354 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
8356 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
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
8365 { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
8366 echo "$as_me: not updating unwritable cache $cache_file" >&6;}
8371 test "x$prefix" = xNONE && prefix=$ac_default_prefix
8372 # Let make expand exec_prefix.
8373 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
8375 DEFS=-DHAVE_CONFIG_H
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'
8390 LTLIBOBJS=$ac_ltlibobjs
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
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.
8409 SHELL=\${CONFIG_SHELL-$SHELL}
8412 cat >>$CONFIG_STATUS <<\_ACEOF
8413 ## --------------------- ##
8414 ## M4sh Initialization. ##
8415 ## --------------------- ##
8417 # Be Bourne compatible
8418 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
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
8426 case `(set -o) 2>/dev/null` in *posix*) set -o posix;; esac
8428 BIN_SH=xpg4; export BIN_SH # for Tru64
8429 DUALCASE=1; export DUALCASE # for MKS sh
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
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
8445 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
8453 # Support unset when possible.
8454 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
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.)
8470 # Find who we are. Look in the path if we contain no directory separator.
8472 *[\\/]* ) as_myself=$0 ;;
8473 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8477 test -z "$as_dir" && as_dir=.
8478 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
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
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; }
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
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
8508 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
8509 eval $as_var=C; export $as_var
8511 ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
8515 # Required to use basename.
8516 if expr a : '\(a\)' >/dev/null 2>&1 &&
8517 test "X`expr 00001 : '.*\(...\)'`" = X001; then
8523 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
8524 as_basename=basename
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 ||
8536 sed '/^.*\/\([^/][^/]*\)\/*$/{
8557 test "x$as_lineno_1" != "x$as_lineno_2" &&
8558 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
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
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. :-)
8581 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
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; }; }
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).
8593 # Exit status is that of the last command.
8598 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
8604 ECHO_C= ECHO_N= ECHO_T=
8607 case `echo 'x\c'` in
8608 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
8615 if expr a : '\(a\)' >/dev/null 2>&1 &&
8616 test "X`expr 00001 : '.*\(...\)'`" = X001; then
8622 rm -f conf$$ conf$$.exe conf$$.file
8623 if test -d conf$$.dir; then
8624 rm -f conf$$.dir/conf$$.file
8630 if ln -s conf$$.file conf$$ 2>/dev/null; then
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 ||
8638 elif ln conf$$.file conf$$ 2>/dev/null; then
8643 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
8644 rmdir conf$$.dir 2>/dev/null
8646 if mkdir -p . 2>/dev/null; then
8649 test -d ./-p && rmdir ./-p
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
8659 chmod +x conf$$.file
8660 if test -x conf$$.file >/dev/null 2>&1; then
8661 as_executable_p="test -x"
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'"
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'"
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.
8680 This file was extended by $as_me, which was
8681 generated by GNU Autoconf 2.60. Invocation command line was
8683 CONFIG_FILES = $CONFIG_FILES
8684 CONFIG_HEADERS = $CONFIG_HEADERS
8685 CONFIG_LINKS = $CONFIG_LINKS
8686 CONFIG_COMMANDS = $CONFIG_COMMANDS
8689 on `(hostname || uname -n) 2>/dev/null | sed 1q`
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"
8701 cat >>$CONFIG_STATUS <<\_ACEOF
8703 \`$as_me' instantiates files from templates according to the
8704 current configuration.
8706 Usage: $0 [OPTIONS] [FILE]...
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
8718 Configuration files:
8721 Configuration headers:
8724 Report bugs to <bug-autoconf@gnu.org>."
8727 cat >>$CONFIG_STATUS <<_ACEOF
8730 configured by $0, generated by GNU Autoconf 2.60,
8731 with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
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."
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.
8750 ac_option=`expr "X$1" : 'X\([^=]*\)='`
8751 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
8762 # Handling of the options.
8763 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
8765 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
8766 echo "$ac_cs_version"; exit ;;
8767 --debug | --debu | --deb | --de | --d | -d )
8769 --file | --fil | --fi | --f )
8771 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
8772 ac_need_defaults=false;;
8773 --header | --heade | --head | --hea )
8775 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
8776 ac_need_defaults=false;;
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)
8789 -*) { echo "$as_me: error: unrecognized option: $1
8790 Try \`$0 --help' for more information." >&2
8791 { (exit 1); exit 1; }; } ;;
8793 *) ac_config_targets="$ac_config_targets $1"
8794 ac_need_defaults=false ;;
8800 ac_configure_extra_args=
8802 if $ac_cs_silent; then
8804 ac_configure_extra_args="$ac_configure_extra_args --silent"
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
8813 exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
8817 cat >>$CONFIG_STATUS <<\_ACEOF
8821 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
8822 ## Running $as_me. ##
8828 cat >>$CONFIG_STATUS <<_ACEOF
8831 cat >>$CONFIG_STATUS <<\_ACEOF
8833 # Handling of arguments.
8834 for ac_config_target in $ac_config_targets
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" ;;
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; }; };;
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
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'.
8901 trap 'exit_status=$?
8902 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
8904 trap '{ (exit 1); exit 1; }' 1 2 13 15
8906 # Create a (secure) tmp directory for tmp files.
8909 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
8910 test -n "$tmp" && test -d "$tmp"
8913 tmp=./conf$$-$RANDOM
8914 (umask 077 && mkdir "$tmp")
8917 echo "$me: cannot create a temporary directory in ." >&2
8918 { (exit 1); exit 1; }
8922 # Set up the sed scripts for CONFIG_FILES section.
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
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
8966 ECHO_C!$ECHO_C$ac_delim
8967 ECHO_N!$ECHO_N$ac_delim
8968 ECHO_T!$ECHO_T$ac_delim
8970 build_alias!$build_alias$ac_delim
8971 host_alias!$host_alias$ac_delim
8972 target_alias!$target_alias$ac_delim
8974 VERSION!$VERSION$ac_delim
8975 VERSIONHI!$VERSIONHI$ac_delim
8976 VERSIONLO!$VERSIONLO$ac_delim
8977 VERSIONP!$VERSIONP$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
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
8996 M_OR_MM!$M_OR_MM$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
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
9029 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 91; then
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; }; }
9036 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
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`
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
9051 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
9052 s/^/s,@/; s/!/@,|#_!!_#|/
9055 s/'"$ac_delim"'$/,g/; t
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
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[ ]*=/{
9076 s/^\([^=]*=[ ]*\):*/\1/
9082 cat >>$CONFIG_STATUS <<\_ACEOF
9083 fi # test -n "$CONFIG_FILES"
9086 for ac_tag in :F $CONFIG_FILES :H $CONFIG_HEADERS
9089 :[FHLC]) ac_mode=$ac_tag; continue;;
9091 case $ac_mode$ac_tag in
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;;
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 `:'.
9121 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
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; }; };;
9127 ac_file_inputs="$ac_file_inputs $ac_f"
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;}
9142 *:-:* | *:-) cat >"$tmp/stdin";;
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 ||
9153 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
9172 -*) as_dir=./$as_dir;;
9174 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
9178 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
9179 *) as_qdir=$as_dir;;
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 ||
9188 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
9205 test -d "$as_dir" && break
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; }; }; }
9214 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
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/ ;;
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
9230 .) # We are building in place.
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 ;;
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 ;;
9243 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
9253 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
9254 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
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=
9263 case `sed -n '/datarootdir/ {
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;}
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' ;;
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
9296 cat >>$CONFIG_STATUS <<\_ACEOF
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
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;}
9322 -) cat "$tmp/out"; rm -f "$tmp/out";;
9323 *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
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'
9356 s/^[ ]*#[ ]*define[ ][ ]*//
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
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.)
9371 s,^[ #]*u.*,/* & */,' >>conftest.defines
9373 # Break up conftest.defines:
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"
9380 ac_in='$ac_file_inputs'
9381 ac_out='"$tmp/out1"'
9382 ac_nxt='"$tmp/out2"'
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
9395 sed ${ac_max_sed_lines}q conftest.defines >>$CONFIG_STATUS
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
9404 rm -f conftest.defines conftest.tail
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;}
9416 mv "$tmp/config.h" $ac_file
9419 echo "/* $configure_input */"
9431 { (exit 0); exit 0; }
9433 chmod +x $CONFIG_STATUS
9434 ac_clean_files=$ac_clean_files_save
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
9447 ac_config_status_args=
9448 test "$silent" = yes &&
9449 ac_config_status_args="$ac_config_status_args --quiet"
9451 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
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; }
9459 # CONFIG_SUBDIRS section.
9461 if test "$no_recursion" != yes; then
9463 # Remove --cache-file and --srcdir arguments so they do not pile up.
9464 ac_sub_configure_args=
9466 eval "set x $ac_configure_args"
9470 if test -n "$ac_prev"; then
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=* \
9482 --config-cache | -C)
9484 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
9486 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
9488 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
9490 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
9494 *\'*) ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
9496 ac_sub_configure_args="$ac_sub_configure_args '$ac_arg'" ;;
9500 # Always prepend --prefix to ensure using the same prefix
9501 # in subdir configurations.
9502 ac_arg="--prefix=$prefix"
9504 *\'*) ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
9506 ac_sub_configure_args="$ac_arg $ac_sub_configure_args"
9509 for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue
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
9515 ac_msg="=== configuring in $ac_dir (`pwd`/$ac_dir)"
9516 echo "$as_me:$LINENO: $ac_msg" >&5
9520 -*) as_dir=./$as_dir;;
9522 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
9526 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
9527 *) as_qdir=$as_dir;;
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 ||
9536 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
9553 test -d "$as_dir" && break
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; }; }; }
9562 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
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/ ;;
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
9578 .) # We are building in place.
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 ;;
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 ;;
9591 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
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
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;}
9610 # The recursion is here.
9611 if test -n "$ac_sub_configure"; then
9612 # Make the cache file name correct relative to the subdirectory.
9614 [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;;
9616 ac_sub_cache_file=$ac_top_build_prefix$cache_file ;;
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; }; }
9634 # I found no better place
9637 # Prepare result message
9638 # ======================
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='\'
9644 # calc friendly strings
9646 binPath=`echo "/${prefix2bin_dir}" | sed 's,/\./,/,g'`
9647 case ":$binPath:" in
9649 :*[\\/]:) binPath=`echo "$binPath" | sed 's,[\\/]*$,,'` ;;
9654 *\\*) binPath=`echo "$binPath" | sed 's,\(.\)[\\/][\\/]*,\1\\\\\\\\,g
9655 s,^[\\/],\\\\\\\\,'` ;;
9657 *) binPath=`echo "$binPath" | sed 's,\(.\)[\\/][\\/]*,\1/,g'` ;;
9659 binPath=`echo "$binPath" | sed 's,\\\\\\\\,\\\\,g'`
9662 incPath1=`echo "/${prefix2data_dir}/${norm_inc_dir_suffix}" | sed 's,/\./,/,g'`
9663 case ":$incPath1:" in
9665 :*[\\/]:) incPath1=`echo "$incPath1" | sed 's,[\\/]*$,,'` ;;
9670 *\\*) incPath1=`echo "$incPath1" | sed 's,\(.\)[\\/][\\/]*,\1\\\\\\\\,g
9671 s,^[\\/],\\\\\\\\,'` ;;
9673 *) incPath1=`echo "$incPath1" | sed 's,\(.\)[\\/][\\/]*,\1/,g'` ;;
9675 incPath1=`echo "$incPath1" | sed 's,\\\\\\\\,\\\\,g'`
9678 incPath2=`echo "/${bin2data_dir}/${norm_inc_dir_suffix}" | sed 's,/\./,/,g'`
9679 case ":$incPath2:" in
9681 :*[\\/]:) incPath2=`echo "$incPath2" | sed 's,[\\/]*$,,'` ;;
9686 *\\*) incPath2=`echo "$incPath2" | sed 's,\(.\)[\\/][\\/]*,\1\\\\\\\\,g
9687 s,^[\\/],\\\\\\\\,'` ;;
9689 *) incPath2=`echo "$incPath2" | sed 's,\(.\)[\\/][\\/]*,\1/,g'` ;;
9691 incPath2=`echo "$incPath2" | sed 's,\\\\\\\\,\\\\,g'`
9694 incPath3=`echo "${expanded_datadir}/${norm_inc_dir_suffix}" | sed 's,/\./,/,g'`
9695 case ":$incPath3:" in
9697 :*[\\/]:) incPath3=`echo "$incPath3" | sed 's,[\\/]*$,,'` ;;
9702 *\\*) incPath3=`echo "$incPath3" | sed 's,\(.\)[\\/][\\/]*,\1\\\\\\\\,g
9703 s,^[\\/],\\\\\\\\,'` ;;
9705 *) incPath3=`echo "$incPath3" | sed 's,\(.\)[\\/][\\/]*,\1/,g'` ;;
9707 incPath3=`echo "$incPath3" | sed 's,\\\\\\\\,\\\\,g'`
9710 libPath1=`echo "/${prefix2data_dir}/${norm_lib_dir_suffix}" | sed 's,/\./,/,g'`
9711 case ":$libPath1:" in
9713 :*[\\/]:) libPath1=`echo "$libPath1" | sed 's,[\\/]*$,,'` ;;
9718 *\\*) libPath1=`echo "$libPath1" | sed 's,\(.\)[\\/][\\/]*,\1\\\\\\\\,g
9719 s,^[\\/],\\\\\\\\,'` ;;
9721 *) libPath1=`echo "$libPath1" | sed 's,\(.\)[\\/][\\/]*,\1/,g'` ;;
9723 libPath1=`echo "$libPath1" | sed 's,\\\\\\\\,\\\\,g'`
9726 libPath2=`echo "/${bin2data_dir}/${norm_lib_dir_suffix}" | sed 's,/\./,/,g'`
9727 case ":$libPath2:" in
9729 :*[\\/]:) libPath2=`echo "$libPath2" | sed 's,[\\/]*$,,'` ;;
9734 *\\*) libPath2=`echo "$libPath2" | sed 's,\(.\)[\\/][\\/]*,\1\\\\\\\\,g
9735 s,^[\\/],\\\\\\\\,'` ;;
9737 *) libPath2=`echo "$libPath2" | sed 's,\(.\)[\\/][\\/]*,\1/,g'` ;;
9739 libPath2=`echo "$libPath2" | sed 's,\\\\\\\\,\\\\,g'`
9742 libPath3=`echo "${expanded_datadir}/${norm_lib_dir_suffix}" | sed 's,/\./,/,g'`
9743 case ":$libPath3:" in
9745 :*[\\/]:) libPath3=`echo "$libPath3" | sed 's,[\\/]*$,,'` ;;
9750 *\\*) libPath3=`echo "$libPath3" | sed 's,\(.\)[\\/][\\/]*,\1\\\\\\\\,g
9751 s,^[\\/],\\\\\\\\,'` ;;
9753 *) libPath3=`echo "$libPath3" | sed 's,\(.\)[\\/][\\/]*,\1/,g'` ;;
9755 libPath3=`echo "$libPath3" | sed 's,\\\\\\\\,\\\\,g'`
9758 { echo "$as_me:$LINENO: result:
9759 sdcc ${VERSION} is now configured for
9761 Build: ${build_alias}
9763 Source directory: ${srcdir}
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}
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}
9788 binary files: ${exec_prefix}
9789 include files: ${datadir}/${include_dir_suffix}
9790 library files: ${datadir}/${lib_dir_suffix}
9791 documentation: ${docdir}
9795 datarootdir: ${datarootdir}
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}
9802 library files: \$SDCC_HOME${libPath1}${dirch}<model>
9803 path(argv[0])${libPath2}${dirch}<model>
9804 ${libPath3}${dirch}<model>
9807 sdcc ${VERSION} is now configured for
9809 Build: ${build_alias}
9811 Source directory: ${srcdir}
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}
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}
9836 binary files: ${exec_prefix}
9837 include files: ${datadir}/${include_dir_suffix}
9838 library files: ${datadir}/${lib_dir_suffix}
9839 documentation: ${docdir}
9843 datarootdir: ${datarootdir}
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}
9850 library files: \$SDCC_HOME${libPath1}${dirch}<model>
9851 path(argv[0])${libPath2}${dirch}<model>
9852 ${libPath3}${dirch}<model>
9854 # End of configure/configure.in