2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.61 for sdcc 2.7.2.
5 # Report bugs to <sdcc-devel@lists.sourceforge.net>.
7 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
8 # 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
9 # This configure script is free software; the Free Software Foundation
10 # gives unlimited permission to copy, distribute and modify it.
11 ## --------------------- ##
12 ## M4sh Initialization. ##
13 ## --------------------- ##
15 # Be more Bourne compatible
16 DUALCASE=1; export DUALCASE # for MKS sh
17 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
20 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
21 # is contrary to our usage. Disable this feature.
22 alias -g '${1+"$@"}'='"$@"'
25 case `(set -o) 2>/dev/null` in
26 *posix*) set -o posix ;;
35 # Avoid depending upon Character Ranges.
36 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
37 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
38 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
39 as_cr_digits='0123456789'
40 as_cr_alnum=$as_cr_Letters$as_cr_digits
42 # The user is always right.
43 if test "${PATH_SEPARATOR+set}" != set; then
44 echo "#! /bin/sh" >conf$$.sh
45 echo "exit 0" >>conf$$.sh
47 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
55 # Support unset when possible.
56 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
64 # We need space, tab and new line, in precisely that order. Quoting is
65 # there to prevent editors from complaining about space-tab.
66 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
67 # splitting by setting IFS to empty value.)
72 # Find who we are. Look in the path if we contain no directory separator.
74 *[\\/]* ) as_myself=$0 ;;
75 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
79 test -z "$as_dir" && as_dir=.
80 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
86 # We did not find ourselves, most probably we were run as `sh COMMAND'
87 # in which case we are not to be found in the path.
88 if test "x$as_myself" = x; then
91 if test ! -f "$as_myself"; then
92 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
96 # Work around bugs in pre-3.0 UWIN ksh.
97 for as_var in ENV MAIL MAILPATH
98 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
106 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
107 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
110 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
111 eval $as_var=C; export $as_var
113 ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
117 # Required to use basename.
118 if expr a : '\(a\)' >/dev/null 2>&1 &&
119 test "X`expr 00001 : '.*\(...\)'`" = X001; then
125 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
132 # Name of the executable.
133 as_me=`$as_basename -- "$0" ||
134 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
135 X"$0" : 'X\(//\)$' \| \
136 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
138 sed '/^.*\/\([^/][^/]*\)\/*$/{
156 if test "x$CONFIG_SHELL" = x; then
157 if (eval ":") 2>/dev/null; then
163 if test $as_have_required = yes && (eval ":
173 as_func_ret_success () {
176 as_func_ret_failure () {
181 if as_func_success; then
185 echo as_func_success failed.
188 if as_func_failure; then
190 echo as_func_failure succeeded.
193 if as_func_ret_success; then
197 echo as_func_ret_success failed.
200 if as_func_ret_failure; then
202 echo as_func_ret_failure succeeded.
205 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
209 echo positional parameters were not saved.
212 test \$exitcode = 0) || { (exit 1); exit 1; }
217 test \"x\$as_lineno_1\" != \"x\$as_lineno_2\" &&
218 test \"x\`expr \$as_lineno_1 + 1\`\" = \"x\$as_lineno_2\") || { (exit 1); exit 1; }
219 ") 2> /dev/null; then
223 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
224 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
227 test -z "$as_dir" && as_dir=.
230 for as_base in sh bash ksh sh5; do
231 as_candidate_shells="$as_candidate_shells $as_dir/$as_base"
238 for as_shell in $as_candidate_shells $SHELL; do
239 # Try only shells that exist, to save several forks.
240 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
241 { ("$as_shell") 2> /dev/null <<\_ASEOF
242 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
245 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
246 # is contrary to our usage. Disable this feature.
247 alias -g '${1+"$@"}'='"$@"'
250 case `(set -o) 2>/dev/null` in
251 *posix*) set -o posix ;;
260 CONFIG_SHELL=$as_shell
262 if { "$as_shell" 2> /dev/null <<\_ASEOF
263 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
266 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
267 # is contrary to our usage. Disable this feature.
268 alias -g '${1+"$@"}'='"$@"'
271 case `(set -o) 2>/dev/null` in
272 *posix*) set -o posix ;;
288 as_func_ret_success () {
291 as_func_ret_failure () {
296 if as_func_success; then
300 echo as_func_success failed.
303 if as_func_failure; then
305 echo as_func_failure succeeded.
308 if as_func_ret_success; then
312 echo as_func_ret_success failed.
315 if as_func_ret_failure; then
317 echo as_func_ret_failure succeeded.
320 if ( set x; as_func_ret_success y && test x = "$1" ); then
324 echo positional parameters were not saved.
327 test $exitcode = 0) || { (exit 1); exit 1; }
332 test "x$as_lineno_1" != "x$as_lineno_2" &&
333 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2") || { (exit 1); exit 1; }
344 if test "x$CONFIG_SHELL" != x; then
345 for as_var in BASH_ENV ENV
346 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
349 exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
353 if test $as_have_required = no; then
354 echo This script requires a shell more modern than all the
355 echo shells that I found on your system. Please install a
356 echo modern shell, or manually run the script under such a
357 echo shell if you do have one.
358 { (exit 1); exit 1; }
368 (eval "as_func_return () {
377 as_func_ret_success () {
380 as_func_ret_failure () {
385 if as_func_success; then
389 echo as_func_success failed.
392 if as_func_failure; then
394 echo as_func_failure succeeded.
397 if as_func_ret_success; then
401 echo as_func_ret_success failed.
404 if as_func_ret_failure; then
406 echo as_func_ret_failure succeeded.
409 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
413 echo positional parameters were not saved.
416 test \$exitcode = 0") || {
417 echo No shell found that supports shell functions.
418 echo Please tell autoconf@gnu.org about your system,
419 echo including any error possibly output before this
427 test "x$as_lineno_1" != "x$as_lineno_2" &&
428 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
430 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
431 # uniformly replaced by the line number. The first 'sed' inserts a
432 # line-number line after each line using $LINENO; the second 'sed'
433 # does the real work. The second script uses 'N' to pair each
434 # line-number line with the line containing $LINENO, and appends
435 # trailing '-' during substitution so that $LINENO is not a special
437 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
438 # scripts with optimization help from Paolo Bonzini. Blame Lee
439 # E. McMahon (1931-1989) for sed's syntax. :-)
451 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
455 chmod +x "$as_me.lineno" ||
456 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
457 { (exit 1); exit 1; }; }
459 # Don't try to exec as it changes $[0], causing all sort of problems
460 # (the dirname of $[0] is not the place where we might find the
461 # original and so on. Autoconf is especially sensitive to this).
463 # Exit status is that of the last command.
468 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
474 ECHO_C= ECHO_N= ECHO_T=
478 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
485 if expr a : '\(a\)' >/dev/null 2>&1 &&
486 test "X`expr 00001 : '.*\(...\)'`" = X001; then
492 rm -f conf$$ conf$$.exe conf$$.file
493 if test -d conf$$.dir; then
494 rm -f conf$$.dir/conf$$.file
500 if ln -s conf$$.file conf$$ 2>/dev/null; then
502 # ... but there are two gotchas:
503 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
504 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
505 # In both cases, we have to default to `cp -p'.
506 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
508 elif ln conf$$.file conf$$ 2>/dev/null; then
513 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
514 rmdir conf$$.dir 2>/dev/null
516 if mkdir -p . 2>/dev/null; then
519 test -d ./-p && rmdir ./-p
523 if test -x / >/dev/null 2>&1; then
526 if ls -dL / >/dev/null 2>&1; then
533 if test -d "$1"; then
539 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
540 ???[sx]*):;;*)false;;esac;fi
544 as_executable_p=$as_test_x
546 # Sed expression to map a string onto a valid CPP name.
547 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
549 # Sed expression to map a string onto a valid variable name.
550 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
554 exec 7<&0 </dev/null 6>&1
557 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
558 # so uname gets run too.
559 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
564 ac_default_prefix=/usr/local
566 ac_config_libobj_dir=.
572 SHELL=${CONFIG_SHELL-/bin/sh}
574 # Identity of this package.
576 PACKAGE_TARNAME='sdcc'
577 PACKAGE_VERSION='2.7.2'
578 PACKAGE_STRING='sdcc 2.7.2'
579 PACKAGE_BUGREPORT='sdcc-devel@lists.sourceforge.net'
581 ac_unique_file="Makefile.in"
582 # Factoring default headers for most tests.
583 ac_includes_default="\
585 #ifdef HAVE_SYS_TYPES_H
586 # include <sys/types.h>
588 #ifdef HAVE_SYS_STAT_H
589 # include <sys/stat.h>
595 # ifdef HAVE_STDLIB_H
600 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
605 #ifdef HAVE_STRINGS_H
606 # include <strings.h>
608 #ifdef HAVE_INTTYPES_H
609 # include <inttypes.h>
627 program_transform_name
681 sdccconf_h_dir_separator
695 OPT_DISABLE_DEVICE_LIB
710 ac_precious_vars='build_alias
719 sdccconf_h_dir_separator
723 ac_subdirs_all='support/cpp2
730 # Initialize some variables set by options.
732 ac_init_version=false
733 # The variables have the same names as the options, with
734 # dashes changed to underlines.
742 program_transform_name=s,x,x,
750 # Installation directory options.
751 # These are left unexpanded so users can "make install exec_prefix=/foo"
752 # and all the variables that are supposed to be based on exec_prefix
753 # by default will actually change.
754 # Use braces instead of parens because sh, perl, etc. also accept them.
755 # (The list follows the same order as the GNU Coding Standards.)
756 bindir='${exec_prefix}/bin'
757 sbindir='${exec_prefix}/sbin'
758 libexecdir='${exec_prefix}/libexec'
759 datarootdir='${prefix}/share'
760 datadir='${datarootdir}'
761 sysconfdir='${prefix}/etc'
762 sharedstatedir='${prefix}/com'
763 localstatedir='${prefix}/var'
764 includedir='${prefix}/include'
765 oldincludedir='/usr/include'
766 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
767 infodir='${datarootdir}/info'
772 libdir='${exec_prefix}/lib'
773 localedir='${datarootdir}/locale'
774 mandir='${datarootdir}/man'
780 # If the previous option needs an argument, assign it.
781 if test -n "$ac_prev"; then
782 eval $ac_prev=\$ac_option
788 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
792 # Accept the important Cygnus configure options, so we can diagnose typos.
794 case $ac_dashdash$ac_option in
798 -bindir | --bindir | --bindi | --bind | --bin | --bi)
800 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
803 -build | --build | --buil | --bui | --bu)
804 ac_prev=build_alias ;;
805 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
806 build_alias=$ac_optarg ;;
808 -cache-file | --cache-file | --cache-fil | --cache-fi \
809 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
810 ac_prev=cache_file ;;
811 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
812 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
813 cache_file=$ac_optarg ;;
816 cache_file=config.cache ;;
818 -datadir | --datadir | --datadi | --datad)
820 -datadir=* | --datadir=* | --datadi=* | --datad=*)
821 datadir=$ac_optarg ;;
823 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
824 | --dataroo | --dataro | --datar)
825 ac_prev=datarootdir ;;
826 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
827 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
828 datarootdir=$ac_optarg ;;
830 -disable-* | --disable-*)
831 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
832 # Reject names that are not valid shell variable names.
833 expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
834 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
835 { (exit 1); exit 1; }; }
836 ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
837 eval enable_$ac_feature=no ;;
839 -docdir | --docdir | --docdi | --doc | --do)
841 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
844 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
846 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
849 -enable-* | --enable-*)
850 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
851 # Reject names that are not valid shell variable names.
852 expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
853 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
854 { (exit 1); exit 1; }; }
855 ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
856 eval enable_$ac_feature=\$ac_optarg ;;
858 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
859 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
860 | --exec | --exe | --ex)
861 ac_prev=exec_prefix ;;
862 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
863 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
864 | --exec=* | --exe=* | --ex=*)
865 exec_prefix=$ac_optarg ;;
867 -gas | --gas | --ga | --g)
868 # Obsolete; use --with-gas.
871 -help | --help | --hel | --he | -h)
873 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
874 ac_init_help=recursive ;;
875 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
876 ac_init_help=short ;;
878 -host | --host | --hos | --ho)
879 ac_prev=host_alias ;;
880 -host=* | --host=* | --hos=* | --ho=*)
881 host_alias=$ac_optarg ;;
883 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
885 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
887 htmldir=$ac_optarg ;;
889 -includedir | --includedir | --includedi | --included | --include \
890 | --includ | --inclu | --incl | --inc)
891 ac_prev=includedir ;;
892 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
893 | --includ=* | --inclu=* | --incl=* | --inc=*)
894 includedir=$ac_optarg ;;
896 -infodir | --infodir | --infodi | --infod | --info | --inf)
898 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
899 infodir=$ac_optarg ;;
901 -libdir | --libdir | --libdi | --libd)
903 -libdir=* | --libdir=* | --libdi=* | --libd=*)
906 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
907 | --libexe | --libex | --libe)
908 ac_prev=libexecdir ;;
909 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
910 | --libexe=* | --libex=* | --libe=*)
911 libexecdir=$ac_optarg ;;
913 -localedir | --localedir | --localedi | --localed | --locale)
915 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
916 localedir=$ac_optarg ;;
918 -localstatedir | --localstatedir | --localstatedi | --localstated \
919 | --localstate | --localstat | --localsta | --localst | --locals)
920 ac_prev=localstatedir ;;
921 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
922 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
923 localstatedir=$ac_optarg ;;
925 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
927 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
931 # Obsolete; use --without-fp.
934 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
935 | --no-cr | --no-c | -n)
938 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
939 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
942 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
943 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
944 | --oldin | --oldi | --old | --ol | --o)
945 ac_prev=oldincludedir ;;
946 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
947 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
948 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
949 oldincludedir=$ac_optarg ;;
951 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
953 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
956 -program-prefix | --program-prefix | --program-prefi | --program-pref \
957 | --program-pre | --program-pr | --program-p)
958 ac_prev=program_prefix ;;
959 -program-prefix=* | --program-prefix=* | --program-prefi=* \
960 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
961 program_prefix=$ac_optarg ;;
963 -program-suffix | --program-suffix | --program-suffi | --program-suff \
964 | --program-suf | --program-su | --program-s)
965 ac_prev=program_suffix ;;
966 -program-suffix=* | --program-suffix=* | --program-suffi=* \
967 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
968 program_suffix=$ac_optarg ;;
970 -program-transform-name | --program-transform-name \
971 | --program-transform-nam | --program-transform-na \
972 | --program-transform-n | --program-transform- \
973 | --program-transform | --program-transfor \
974 | --program-transfo | --program-transf \
975 | --program-trans | --program-tran \
976 | --progr-tra | --program-tr | --program-t)
977 ac_prev=program_transform_name ;;
978 -program-transform-name=* | --program-transform-name=* \
979 | --program-transform-nam=* | --program-transform-na=* \
980 | --program-transform-n=* | --program-transform-=* \
981 | --program-transform=* | --program-transfor=* \
982 | --program-transfo=* | --program-transf=* \
983 | --program-trans=* | --program-tran=* \
984 | --progr-tra=* | --program-tr=* | --program-t=*)
985 program_transform_name=$ac_optarg ;;
987 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
989 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
992 -psdir | --psdir | --psdi | --psd | --ps)
994 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
997 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
998 | -silent | --silent | --silen | --sile | --sil)
1001 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1003 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1005 sbindir=$ac_optarg ;;
1007 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1008 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1009 | --sharedst | --shareds | --shared | --share | --shar \
1011 ac_prev=sharedstatedir ;;
1012 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1013 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1014 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1016 sharedstatedir=$ac_optarg ;;
1018 -site | --site | --sit)
1020 -site=* | --site=* | --sit=*)
1023 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1025 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1026 srcdir=$ac_optarg ;;
1028 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1029 | --syscon | --sysco | --sysc | --sys | --sy)
1030 ac_prev=sysconfdir ;;
1031 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1032 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1033 sysconfdir=$ac_optarg ;;
1035 -target | --target | --targe | --targ | --tar | --ta | --t)
1036 ac_prev=target_alias ;;
1037 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1038 target_alias=$ac_optarg ;;
1040 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1043 -version | --version | --versio | --versi | --vers | -V)
1044 ac_init_version=: ;;
1047 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1048 # Reject names that are not valid shell variable names.
1049 expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1050 { echo "$as_me: error: invalid package name: $ac_package" >&2
1051 { (exit 1); exit 1; }; }
1052 ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
1053 eval with_$ac_package=\$ac_optarg ;;
1055 -without-* | --without-*)
1056 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1057 # Reject names that are not valid shell variable names.
1058 expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1059 { echo "$as_me: error: invalid package name: $ac_package" >&2
1060 { (exit 1); exit 1; }; }
1061 ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
1062 eval with_$ac_package=no ;;
1065 # Obsolete; use --with-x.
1068 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1069 | --x-incl | --x-inc | --x-in | --x-i)
1070 ac_prev=x_includes ;;
1071 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1072 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1073 x_includes=$ac_optarg ;;
1075 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1076 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1077 ac_prev=x_libraries ;;
1078 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1079 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1080 x_libraries=$ac_optarg ;;
1082 -*) { echo "$as_me: error: unrecognized option: $ac_option
1083 Try \`$0 --help' for more information." >&2
1084 { (exit 1); exit 1; }; }
1088 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1089 # Reject names that are not valid shell variable names.
1090 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1091 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1092 { (exit 1); exit 1; }; }
1093 eval $ac_envvar=\$ac_optarg
1094 export $ac_envvar ;;
1097 # FIXME: should be removed in autoconf 3.0.
1098 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1099 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1100 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1101 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1107 if test -n "$ac_prev"; then
1108 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1109 { echo "$as_me: error: missing argument to $ac_option" >&2
1110 { (exit 1); exit 1; }; }
1113 # Be sure to have absolute directory names.
1114 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1115 datadir sysconfdir sharedstatedir localstatedir includedir \
1116 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1117 libdir localedir mandir
1119 eval ac_val=\$$ac_var
1121 [\\/$]* | ?:[\\/]* ) continue;;
1122 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1124 { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1125 { (exit 1); exit 1; }; }
1128 # There might be people who depend on the old broken behavior: `$host'
1129 # used to hold the argument of --host etc.
1130 # FIXME: To remove some day.
1133 target=$target_alias
1135 # FIXME: To remove some day.
1136 if test "x$host_alias" != x; then
1137 if test "x$build_alias" = x; then
1138 cross_compiling=maybe
1139 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1140 If a cross compiler is detected then cross compile mode will be used." >&2
1141 elif test "x$build_alias" != "x$host_alias"; then
1147 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1149 test "$silent" = yes && exec 6>/dev/null
1152 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1153 ac_ls_di=`ls -di .` &&
1154 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1155 { echo "$as_me: error: Working directory cannot be determined" >&2
1156 { (exit 1); exit 1; }; }
1157 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1158 { echo "$as_me: error: pwd does not report name of working directory" >&2
1159 { (exit 1); exit 1; }; }
1162 # Find the source files, if location was not specified.
1163 if test -z "$srcdir"; then
1164 ac_srcdir_defaulted=yes
1165 # Try the directory containing this script, then the parent directory.
1166 ac_confdir=`$as_dirname -- "$0" ||
1167 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1168 X"$0" : 'X\(//\)[^/]' \| \
1169 X"$0" : 'X\(//\)$' \| \
1170 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
1172 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1190 if test ! -r "$srcdir/$ac_unique_file"; then
1194 ac_srcdir_defaulted=no
1196 if test ! -r "$srcdir/$ac_unique_file"; then
1197 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1198 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1199 { (exit 1); exit 1; }; }
1201 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1203 cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2
1204 { (exit 1); exit 1; }; }
1206 # When building in place, set srcdir=.
1207 if test "$ac_abs_confdir" = "$ac_pwd"; then
1210 # Remove unnecessary trailing slashes from srcdir.
1211 # Double slashes in file names in object file debugging info
1212 # mess up M-x gdb in Emacs.
1214 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1216 for ac_var in $ac_precious_vars; do
1217 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1218 eval ac_env_${ac_var}_value=\$${ac_var}
1219 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1220 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1224 # Report the --help message.
1226 if test "$ac_init_help" = "long"; then
1227 # Omit some internal or obsolete options to make the list less imposing.
1228 # This message is too long to be a string in the A/UX 3.1 sh.
1230 \`configure' configures sdcc 2.7.2 to adapt to many kinds of systems.
1232 Usage: $0 [OPTION]... [VAR=VALUE]...
1234 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1235 VAR=VALUE. See below for descriptions of some of the useful variables.
1237 Defaults for the options are specified in brackets.
1240 -h, --help display this help and exit
1241 --help=short display options specific to this package
1242 --help=recursive display the short help of all the included packages
1243 -V, --version display version information and exit
1244 -q, --quiet, --silent do not print \`checking...' messages
1245 --cache-file=FILE cache test results in FILE [disabled]
1246 -C, --config-cache alias for \`--cache-file=config.cache'
1247 -n, --no-create do not create output files
1248 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1250 Installation directories:
1251 --prefix=PREFIX install architecture-independent files in PREFIX
1252 [$ac_default_prefix]
1253 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1256 By default, \`make install' will install all the files in
1257 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1258 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1259 for instance \`--prefix=\$HOME'.
1261 For better control, use the options below.
1263 Fine tuning of the installation directories:
1264 --bindir=DIR user executables [EPREFIX/bin]
1265 --sbindir=DIR system admin executables [EPREFIX/sbin]
1266 --libexecdir=DIR program executables [EPREFIX/libexec]
1267 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1268 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1269 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1270 --libdir=DIR object code libraries [EPREFIX/lib]
1271 --includedir=DIR C header files [PREFIX/include]
1272 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1273 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1274 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1275 --infodir=DIR info documentation [DATAROOTDIR/info]
1276 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1277 --mandir=DIR man documentation [DATAROOTDIR/man]
1278 --docdir=DIR documentation root [DATAROOTDIR/doc/sdcc]
1279 --htmldir=DIR html documentation [DOCDIR]
1280 --dvidir=DIR dvi documentation [DOCDIR]
1281 --pdfdir=DIR pdf documentation [DOCDIR]
1282 --psdir=DIR ps documentation [DOCDIR]
1288 --program-prefix=PREFIX prepend PREFIX to installed program names
1289 --program-suffix=SUFFIX append SUFFIX to installed program names
1290 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1294 if test -n "$ac_init_help"; then
1295 case $ac_init_help in
1296 short | recursive ) echo "Configuration of sdcc 2.7.2:";;
1301 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1302 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1303 --disable-mcs51-port Excludes the Intel mcs51 port
1304 --disable-gbz80-port Excludes the Gameboy gbz80 port
1305 --disable-z80-port Excludes the z80 port
1306 --disable-avr-port Excludes the AVR port
1307 --disable-ds390-port Excludes the DS390 port
1308 --disable-ds400-port Excludes the DS400 port
1309 --disable-pic-port Excludes the PIC port
1310 --disable-pic16-port Excludes the PIC16 port
1311 --disable-xa51-port Excludes the XA51 port
1312 --disable-hc08-port Excludes the HC08 port
1313 --disable-ucsim Disables configuring and building of ucsim
1314 --disable-device-lib Disables building device libraries
1315 --disable-packihx Disables building packihx
1316 --disable-sdcpp Disables building sdcpp
1317 --disable-sdcdb Disables building sdcdb
1318 --enable-doc Enables building the documentation
1319 --enable-libgc Use the Bohem memory allocator. Lower runtime
1322 Some influential environment variables:
1323 CC C compiler command
1324 CFLAGS C compiler flags
1325 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1326 nonstandard directory <lib dir>
1327 LIBS libraries to pass to the linker, e.g. -l<library>
1328 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1329 you have headers in a nonstandard directory <include dir>
1331 sdccconf_h_dir_separator
1332 needed in sdccconf.h: either "/" (default) or "\\"
1334 appended to datadir to define SDCC's include directory
1336 appended to datadir to define SDCC's library root directory
1337 docdir documentation installation directory
1339 Use these variables to override the choices made by `configure' or to help
1340 it to find libraries and programs with nonstandard names/locations.
1342 Report bugs to <sdcc-devel@lists.sourceforge.net>.
1347 if test "$ac_init_help" = "recursive"; then
1348 # If there are subdirs, report their specific --help.
1349 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1350 test -d "$ac_dir" || continue
1354 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1356 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1357 # A ".." for each directory in $ac_dir_suffix.
1358 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
1359 case $ac_top_builddir_sub in
1360 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1361 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1364 ac_abs_top_builddir=$ac_pwd
1365 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1366 # for backward compatibility:
1367 ac_top_builddir=$ac_top_build_prefix
1370 .) # We are building in place.
1372 ac_top_srcdir=$ac_top_builddir_sub
1373 ac_abs_top_srcdir=$ac_pwd ;;
1374 [\\/]* | ?:[\\/]* ) # Absolute name.
1375 ac_srcdir=$srcdir$ac_dir_suffix;
1376 ac_top_srcdir=$srcdir
1377 ac_abs_top_srcdir=$srcdir ;;
1379 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1380 ac_top_srcdir=$ac_top_build_prefix$srcdir
1381 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1383 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1385 cd "$ac_dir" || { ac_status=$?; continue; }
1386 # Check for guested configure.
1387 if test -f "$ac_srcdir/configure.gnu"; then
1389 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1390 elif test -f "$ac_srcdir/configure"; then
1392 $SHELL "$ac_srcdir/configure" --help=recursive
1394 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1396 cd "$ac_pwd" || { ac_status=$?; break; }
1400 test -n "$ac_init_help" && exit $ac_status
1401 if $ac_init_version; then
1403 sdcc configure 2.7.2
1404 generated by GNU Autoconf 2.61
1406 Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
1407 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
1408 This configure script is free software; the Free Software Foundation
1409 gives unlimited permission to copy, distribute and modify it.
1413 cat >config.log <<_ACEOF
1414 This file contains any messages produced by compilers while
1415 running configure, to aid debugging if configure makes a mistake.
1417 It was created by sdcc $as_me 2.7.2, which was
1418 generated by GNU Autoconf 2.61. Invocation command line was
1430 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1431 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1432 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1433 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1434 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1436 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1437 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1439 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1440 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1441 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1442 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1443 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1444 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1445 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1449 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1453 test -z "$as_dir" && as_dir=.
1454 echo "PATH: $as_dir"
1470 # Keep a trace of the command line.
1471 # Strip out --no-create and --no-recursion so they do not pile up.
1472 # Strip out --silent because we don't want to record it for future runs.
1473 # Also quote any args containing shell meta-characters.
1474 # Make two passes to allow for proper duplicate-argument suppression.
1478 ac_must_keep_next=false
1484 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1485 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1486 | -silent | --silent | --silen | --sile | --sil)
1489 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1492 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1494 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1495 if test $ac_must_keep_next = true; then
1496 ac_must_keep_next=false # Got value, back to normal.
1499 *=* | --config-cache | -C | -disable-* | --disable-* \
1500 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1501 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1502 | -with-* | --with-* | -without-* | --without-* | --x)
1503 case "$ac_configure_args0 " in
1504 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1507 -* ) ac_must_keep_next=true ;;
1510 ac_configure_args="$ac_configure_args '$ac_arg'"
1515 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1516 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1518 # When interrupted or exit'd, cleanup temporary files, and complete
1519 # config.log. We remove comments because anyway the quotes in there
1520 # would cause problems or look ugly.
1521 # WARNING: Use '\'' to represent an apostrophe within the trap.
1522 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1523 trap 'exit_status=$?
1524 # Save into config.log some information that might help in debugging.
1529 ## ---------------- ##
1530 ## Cache variables. ##
1531 ## ---------------- ##
1534 # The following way of writing the cache mishandles newlines in values,
1536 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1537 eval ac_val=\$$ac_var
1541 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
1542 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
1545 _ | IFS | as_nl) ;; #(
1546 *) $as_unset $ac_var ;;
1551 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1552 *${as_nl}ac_space=\ *)
1554 "s/'\''/'\''\\\\'\'''\''/g;
1555 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1558 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1566 ## ----------------- ##
1567 ## Output variables. ##
1568 ## ----------------- ##
1571 for ac_var in $ac_subst_vars
1573 eval ac_val=\$$ac_var
1575 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1577 echo "$ac_var='\''$ac_val'\''"
1581 if test -n "$ac_subst_files"; then
1583 ## ------------------- ##
1584 ## File substitutions. ##
1585 ## ------------------- ##
1588 for ac_var in $ac_subst_files
1590 eval ac_val=\$$ac_var
1592 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1594 echo "$ac_var='\''$ac_val'\''"
1599 if test -s confdefs.h; then
1609 test "$ac_signal" != 0 &&
1610 echo "$as_me: caught signal $ac_signal"
1611 echo "$as_me: exit $exit_status"
1613 rm -f core *.core core.conftest.* &&
1614 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1617 for ac_signal in 1 2 13 15; do
1618 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1622 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1623 rm -f -r conftest* confdefs.h
1625 # Predefined preprocessor variables.
1627 cat >>confdefs.h <<_ACEOF
1628 #define PACKAGE_NAME "$PACKAGE_NAME"
1632 cat >>confdefs.h <<_ACEOF
1633 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1637 cat >>confdefs.h <<_ACEOF
1638 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1642 cat >>confdefs.h <<_ACEOF
1643 #define PACKAGE_STRING "$PACKAGE_STRING"
1647 cat >>confdefs.h <<_ACEOF
1648 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1652 # Let the site file select an alternate cache file if it wants to.
1653 # Prefer explicitly selected file to automatically selected ones.
1654 if test -n "$CONFIG_SITE"; then
1655 set x "$CONFIG_SITE"
1656 elif test "x$prefix" != xNONE; then
1657 set x "$prefix/share/config.site" "$prefix/etc/config.site"
1659 set x "$ac_default_prefix/share/config.site" \
1660 "$ac_default_prefix/etc/config.site"
1665 if test -r "$ac_site_file"; then
1666 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1667 echo "$as_me: loading site script $ac_site_file" >&6;}
1668 sed 's/^/| /' "$ac_site_file" >&5
1673 if test -r "$cache_file"; then
1674 # Some versions of bash will fail to source /dev/null (special
1675 # files actually), so we avoid doing that.
1676 if test -f "$cache_file"; then
1677 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1678 echo "$as_me: loading cache $cache_file" >&6;}
1680 [\\/]* | ?:[\\/]* ) . "$cache_file";;
1681 *) . "./$cache_file";;
1685 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1686 echo "$as_me: creating cache $cache_file" >&6;}
1690 # Check that the precious variables saved in the cache have kept the same
1692 ac_cache_corrupted=false
1693 for ac_var in $ac_precious_vars; do
1694 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1695 eval ac_new_set=\$ac_env_${ac_var}_set
1696 eval ac_old_val=\$ac_cv_env_${ac_var}_value
1697 eval ac_new_val=\$ac_env_${ac_var}_value
1698 case $ac_old_set,$ac_new_set in
1700 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1701 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1702 ac_cache_corrupted=: ;;
1704 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1705 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1706 ac_cache_corrupted=: ;;
1709 if test "x$ac_old_val" != "x$ac_new_val"; then
1710 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1711 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1712 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1713 echo "$as_me: former value: $ac_old_val" >&2;}
1714 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1715 echo "$as_me: current value: $ac_new_val" >&2;}
1716 ac_cache_corrupted=:
1719 # Pass precious variables to config.status.
1720 if test "$ac_new_set" = set; then
1722 *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1723 *) ac_arg=$ac_var=$ac_new_val ;;
1725 case " $ac_configure_args " in
1726 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1727 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1731 if $ac_cache_corrupted; then
1732 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1733 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1734 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1735 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1736 { (exit 1); exit 1; }; }
1764 ac_cpp='$CPP $CPPFLAGS'
1765 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1766 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1767 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1771 ac_config_headers="$ac_config_headers sdccconf.h:sdccconf_in.h"
1774 for ac_prog in gawk mawk nawk awk
1776 # Extract the first word of "$ac_prog", so it can be a program name with args.
1777 set dummy $ac_prog; ac_word=$2
1778 { echo "$as_me:$LINENO: checking for $ac_word" >&5
1779 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
1780 if test "${ac_cv_prog_AWK+set}" = set; then
1781 echo $ECHO_N "(cached) $ECHO_C" >&6
1783 if test -n "$AWK"; then
1784 ac_cv_prog_AWK="$AWK" # Let the user override the test.
1786 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1790 test -z "$as_dir" && as_dir=.
1791 for ac_exec_ext in '' $ac_executable_extensions; do
1792 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1793 ac_cv_prog_AWK="$ac_prog"
1794 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1804 if test -n "$AWK"; then
1805 { echo "$as_me:$LINENO: result: $AWK" >&5
1806 echo "${ECHO_T}$AWK" >&6; }
1808 { echo "$as_me:$LINENO: result: no" >&5
1809 echo "${ECHO_T}no" >&6; }
1813 test -n "$AWK" && break
1817 VERSION=$PACKAGE_VERSION
1818 VERSIONHI=`echo $VERSION|$AWK 'BEGIN {FS="."} {print $1}'`
1819 VERSIONLO=`echo $VERSION|$AWK 'BEGIN {FS="."} {print $2}'`
1820 VERSIONP=`echo $VERSION|$AWK 'BEGIN {FS="."} {print $3}'`
1822 { echo "$as_me:$LINENO: result: ${VERSION}" >&5
1823 echo "${ECHO_T}${VERSION}" >&6; }
1828 cat >>confdefs.h <<_ACEOF
1829 #define SDCC_VERSION_LO ${VERSIONLO}
1832 cat >>confdefs.h <<_ACEOF
1833 #define SDCC_VERSION_HI ${VERSIONHI}
1836 cat >>confdefs.h <<_ACEOF
1837 #define SDCC_VERSION_P ${VERSIONP}
1840 cat >>confdefs.h <<_ACEOF
1841 #define SDCC_VERSION_STR "${VERSION}"
1844 test "$program_prefix" != NONE &&
1845 program_transform_name="s&^&$program_prefix&;$program_transform_name"
1846 # Use a double $ so make ignores it.
1847 test "$program_suffix" != NONE &&
1848 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
1849 # Double any \ or $. echo might interpret backslashes.
1850 # By default was `s,x,x', remove it if useless.
1851 cat <<\_ACEOF >conftest.sed
1852 s/[\\$]/&&/g;s/;s,x,x,$//
1854 program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
1857 sdcc_cv_version=$VERSION
1858 sdcc_cv_versionhi=$VERSIONHI
1859 sdcc_cv_versionlo=$VERSIONLO
1860 sdcc_cv_versionp=$VERSIONP
1864 # ===========================================================================
1866 ac_cpp='$CPP $CPPFLAGS'
1867 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1868 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1869 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1870 if test -n "$ac_tool_prefix"; then
1871 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
1872 set dummy ${ac_tool_prefix}gcc; ac_word=$2
1873 { echo "$as_me:$LINENO: checking for $ac_word" >&5
1874 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
1875 if test "${ac_cv_prog_CC+set}" = set; then
1876 echo $ECHO_N "(cached) $ECHO_C" >&6
1878 if test -n "$CC"; then
1879 ac_cv_prog_CC="$CC" # Let the user override the test.
1881 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1885 test -z "$as_dir" && as_dir=.
1886 for ac_exec_ext in '' $ac_executable_extensions; do
1887 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1888 ac_cv_prog_CC="${ac_tool_prefix}gcc"
1889 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1899 if test -n "$CC"; then
1900 { echo "$as_me:$LINENO: result: $CC" >&5
1901 echo "${ECHO_T}$CC" >&6; }
1903 { echo "$as_me:$LINENO: result: no" >&5
1904 echo "${ECHO_T}no" >&6; }
1909 if test -z "$ac_cv_prog_CC"; then
1911 # Extract the first word of "gcc", so it can be a program name with args.
1912 set dummy gcc; ac_word=$2
1913 { echo "$as_me:$LINENO: checking for $ac_word" >&5
1914 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
1915 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1916 echo $ECHO_N "(cached) $ECHO_C" >&6
1918 if test -n "$ac_ct_CC"; then
1919 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1921 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1925 test -z "$as_dir" && as_dir=.
1926 for ac_exec_ext in '' $ac_executable_extensions; do
1927 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1928 ac_cv_prog_ac_ct_CC="gcc"
1929 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1938 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1939 if test -n "$ac_ct_CC"; then
1940 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1941 echo "${ECHO_T}$ac_ct_CC" >&6; }
1943 { echo "$as_me:$LINENO: result: no" >&5
1944 echo "${ECHO_T}no" >&6; }
1947 if test "x$ac_ct_CC" = x; then
1950 case $cross_compiling:$ac_tool_warned in
1952 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
1953 whose name does not start with the host triplet. If you think this
1954 configuration is useful to you, please write to autoconf@gnu.org." >&5
1955 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
1956 whose name does not start with the host triplet. If you think this
1957 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
1958 ac_tool_warned=yes ;;
1966 if test -z "$CC"; then
1967 if test -n "$ac_tool_prefix"; then
1968 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
1969 set dummy ${ac_tool_prefix}cc; ac_word=$2
1970 { echo "$as_me:$LINENO: checking for $ac_word" >&5
1971 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
1972 if test "${ac_cv_prog_CC+set}" = set; then
1973 echo $ECHO_N "(cached) $ECHO_C" >&6
1975 if test -n "$CC"; then
1976 ac_cv_prog_CC="$CC" # Let the user override the test.
1978 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1982 test -z "$as_dir" && as_dir=.
1983 for ac_exec_ext in '' $ac_executable_extensions; do
1984 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1985 ac_cv_prog_CC="${ac_tool_prefix}cc"
1986 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1996 if test -n "$CC"; then
1997 { echo "$as_me:$LINENO: result: $CC" >&5
1998 echo "${ECHO_T}$CC" >&6; }
2000 { echo "$as_me:$LINENO: result: no" >&5
2001 echo "${ECHO_T}no" >&6; }
2007 if test -z "$CC"; then
2008 # Extract the first word of "cc", so it can be a program name with args.
2009 set dummy cc; ac_word=$2
2010 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2011 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2012 if test "${ac_cv_prog_CC+set}" = set; then
2013 echo $ECHO_N "(cached) $ECHO_C" >&6
2015 if test -n "$CC"; then
2016 ac_cv_prog_CC="$CC" # Let the user override the test.
2019 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2023 test -z "$as_dir" && as_dir=.
2024 for ac_exec_ext in '' $ac_executable_extensions; do
2025 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2026 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2027 ac_prog_rejected=yes
2031 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2038 if test $ac_prog_rejected = yes; then
2039 # We found a bogon in the path, so make sure we never use it.
2040 set dummy $ac_cv_prog_CC
2042 if test $# != 0; then
2043 # We chose a different compiler from the bogus one.
2044 # However, it has the same basename, so the bogon will be chosen
2045 # first if we set CC to just the basename; use the full file name.
2047 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2053 if test -n "$CC"; then
2054 { echo "$as_me:$LINENO: result: $CC" >&5
2055 echo "${ECHO_T}$CC" >&6; }
2057 { echo "$as_me:$LINENO: result: no" >&5
2058 echo "${ECHO_T}no" >&6; }
2063 if test -z "$CC"; then
2064 if test -n "$ac_tool_prefix"; then
2065 for ac_prog in cl.exe
2067 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2068 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2069 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2070 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2071 if test "${ac_cv_prog_CC+set}" = set; then
2072 echo $ECHO_N "(cached) $ECHO_C" >&6
2074 if test -n "$CC"; then
2075 ac_cv_prog_CC="$CC" # Let the user override the test.
2077 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2081 test -z "$as_dir" && as_dir=.
2082 for ac_exec_ext in '' $ac_executable_extensions; do
2083 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2084 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2085 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2095 if test -n "$CC"; then
2096 { echo "$as_me:$LINENO: result: $CC" >&5
2097 echo "${ECHO_T}$CC" >&6; }
2099 { echo "$as_me:$LINENO: result: no" >&5
2100 echo "${ECHO_T}no" >&6; }
2104 test -n "$CC" && break
2107 if test -z "$CC"; then
2109 for ac_prog in cl.exe
2111 # Extract the first word of "$ac_prog", so it can be a program name with args.
2112 set dummy $ac_prog; ac_word=$2
2113 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2114 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2115 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2116 echo $ECHO_N "(cached) $ECHO_C" >&6
2118 if test -n "$ac_ct_CC"; then
2119 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2121 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2125 test -z "$as_dir" && as_dir=.
2126 for ac_exec_ext in '' $ac_executable_extensions; do
2127 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2128 ac_cv_prog_ac_ct_CC="$ac_prog"
2129 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2138 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2139 if test -n "$ac_ct_CC"; then
2140 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2141 echo "${ECHO_T}$ac_ct_CC" >&6; }
2143 { echo "$as_me:$LINENO: result: no" >&5
2144 echo "${ECHO_T}no" >&6; }
2148 test -n "$ac_ct_CC" && break
2151 if test "x$ac_ct_CC" = x; then
2154 case $cross_compiling:$ac_tool_warned in
2156 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2157 whose name does not start with the host triplet. If you think this
2158 configuration is useful to you, please write to autoconf@gnu.org." >&5
2159 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2160 whose name does not start with the host triplet. If you think this
2161 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2162 ac_tool_warned=yes ;;
2171 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2172 See \`config.log' for more details." >&5
2173 echo "$as_me: error: no acceptable C compiler found in \$PATH
2174 See \`config.log' for more details." >&2;}
2175 { (exit 1); exit 1; }; }
2177 # Provide some information about the compiler.
2178 echo "$as_me:$LINENO: checking for C compiler version" >&5
2179 ac_compiler=`set X $ac_compile; echo $2`
2180 { (ac_try="$ac_compiler --version >&5"
2182 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2183 *) ac_try_echo=$ac_try;;
2185 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2186 (eval "$ac_compiler --version >&5") 2>&5
2188 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2189 (exit $ac_status); }
2190 { (ac_try="$ac_compiler -v >&5"
2192 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2193 *) ac_try_echo=$ac_try;;
2195 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2196 (eval "$ac_compiler -v >&5") 2>&5
2198 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2199 (exit $ac_status); }
2200 { (ac_try="$ac_compiler -V >&5"
2202 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2203 *) ac_try_echo=$ac_try;;
2205 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2206 (eval "$ac_compiler -V >&5") 2>&5
2208 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2209 (exit $ac_status); }
2211 cat >conftest.$ac_ext <<_ACEOF
2214 cat confdefs.h >>conftest.$ac_ext
2215 cat >>conftest.$ac_ext <<_ACEOF
2216 /* end confdefs.h. */
2226 ac_clean_files_save=$ac_clean_files
2227 ac_clean_files="$ac_clean_files a.out a.exe b.out"
2228 # Try to create an executable without -o first, disregard a.out.
2229 # It will help us diagnose broken compilers, and finding out an intuition
2231 { echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2232 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; }
2233 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2235 # List of possible output files, starting from the most likely.
2236 # The algorithm is not robust to junk in `.', hence go to wildcards (a.*)
2237 # only as a last resort. b.out is created by i960 compilers.
2238 ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out'
2240 # The IRIX 6 linker writes into existing files which may not be
2241 # executable, retaining their permissions. Remove them first so a
2242 # subsequent execution test works.
2244 for ac_file in $ac_files
2247 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2248 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2253 if { (ac_try="$ac_link_default"
2255 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2256 *) ac_try_echo=$ac_try;;
2258 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2259 (eval "$ac_link_default") 2>&5
2261 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2262 (exit $ac_status); }; then
2263 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2264 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2265 # in a Makefile. We should not override ac_cv_exeext if it was cached,
2266 # so that the user can short-circuit this test for compilers unknown to
2268 for ac_file in $ac_files ''
2270 test -f "$ac_file" || continue
2272 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj )
2275 # We found the default executable, but exeext='' is most
2279 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2281 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2283 # We set ac_cv_exeext here because the later test for it is not
2284 # safe: cross compilers may not add the suffix if given an `-o'
2285 # argument, so we may need to know it at that point already.
2286 # Even if this section looks crufty: it has the advantage of
2293 test "$ac_cv_exeext" = no && ac_cv_exeext=
2299 { echo "$as_me:$LINENO: result: $ac_file" >&5
2300 echo "${ECHO_T}$ac_file" >&6; }
2301 if test -z "$ac_file"; then
2302 echo "$as_me: failed program was:" >&5
2303 sed 's/^/| /' conftest.$ac_ext >&5
2305 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
2306 See \`config.log' for more details." >&5
2307 echo "$as_me: error: C compiler cannot create executables
2308 See \`config.log' for more details." >&2;}
2309 { (exit 77); exit 77; }; }
2312 ac_exeext=$ac_cv_exeext
2314 # Check that the compiler produces executables we can run. If not, either
2315 # the compiler is broken, or we cross compile.
2316 { echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2317 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; }
2318 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2319 # If not cross compiling, check that we can run a simple program.
2320 if test "$cross_compiling" != yes; then
2321 if { ac_try='./$ac_file'
2322 { (case "(($ac_try" in
2323 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2324 *) ac_try_echo=$ac_try;;
2326 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2327 (eval "$ac_try") 2>&5
2329 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2330 (exit $ac_status); }; }; then
2333 if test "$cross_compiling" = maybe; then
2336 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2337 If you meant to cross compile, use \`--host'.
2338 See \`config.log' for more details." >&5
2339 echo "$as_me: error: cannot run C compiled programs.
2340 If you meant to cross compile, use \`--host'.
2341 See \`config.log' for more details." >&2;}
2342 { (exit 1); exit 1; }; }
2346 { echo "$as_me:$LINENO: result: yes" >&5
2347 echo "${ECHO_T}yes" >&6; }
2349 rm -f a.out a.exe conftest$ac_cv_exeext b.out
2350 ac_clean_files=$ac_clean_files_save
2351 # Check that the compiler produces executables we can run. If not, either
2352 # the compiler is broken, or we cross compile.
2353 { echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2354 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; }
2355 { echo "$as_me:$LINENO: result: $cross_compiling" >&5
2356 echo "${ECHO_T}$cross_compiling" >&6; }
2358 { echo "$as_me:$LINENO: checking for suffix of executables" >&5
2359 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; }
2360 if { (ac_try="$ac_link"
2362 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2363 *) ac_try_echo=$ac_try;;
2365 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2366 (eval "$ac_link") 2>&5
2368 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2369 (exit $ac_status); }; then
2370 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2371 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2372 # work properly (i.e., refer to `conftest.exe'), while it won't with
2374 for ac_file in conftest.exe conftest conftest.*; do
2375 test -f "$ac_file" || continue
2377 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2378 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2384 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2385 See \`config.log' for more details." >&5
2386 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2387 See \`config.log' for more details." >&2;}
2388 { (exit 1); exit 1; }; }
2391 rm -f conftest$ac_cv_exeext
2392 { echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2393 echo "${ECHO_T}$ac_cv_exeext" >&6; }
2395 rm -f conftest.$ac_ext
2396 EXEEXT=$ac_cv_exeext
2398 { echo "$as_me:$LINENO: checking for suffix of object files" >&5
2399 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
2400 if test "${ac_cv_objext+set}" = set; then
2401 echo $ECHO_N "(cached) $ECHO_C" >&6
2403 cat >conftest.$ac_ext <<_ACEOF
2406 cat confdefs.h >>conftest.$ac_ext
2407 cat >>conftest.$ac_ext <<_ACEOF
2408 /* end confdefs.h. */
2418 rm -f conftest.o conftest.obj
2419 if { (ac_try="$ac_compile"
2421 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2422 *) ac_try_echo=$ac_try;;
2424 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2425 (eval "$ac_compile") 2>&5
2427 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2428 (exit $ac_status); }; then
2429 for ac_file in conftest.o conftest.obj conftest.*; do
2430 test -f "$ac_file" || continue;
2432 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
2433 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2438 echo "$as_me: failed program was:" >&5
2439 sed 's/^/| /' conftest.$ac_ext >&5
2441 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2442 See \`config.log' for more details." >&5
2443 echo "$as_me: error: cannot compute suffix of object files: cannot compile
2444 See \`config.log' for more details." >&2;}
2445 { (exit 1); exit 1; }; }
2448 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2450 { echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2451 echo "${ECHO_T}$ac_cv_objext" >&6; }
2452 OBJEXT=$ac_cv_objext
2454 { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2455 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
2456 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2457 echo $ECHO_N "(cached) $ECHO_C" >&6
2459 cat >conftest.$ac_ext <<_ACEOF
2462 cat confdefs.h >>conftest.$ac_ext
2463 cat >>conftest.$ac_ext <<_ACEOF
2464 /* end confdefs.h. */
2477 rm -f conftest.$ac_objext
2478 if { (ac_try="$ac_compile"
2480 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2481 *) ac_try_echo=$ac_try;;
2483 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2484 (eval "$ac_compile") 2>conftest.er1
2486 grep -v '^ *+' conftest.er1 >conftest.err
2488 cat conftest.err >&5
2489 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2490 (exit $ac_status); } && {
2491 test -z "$ac_c_werror_flag" ||
2492 test ! -s conftest.err
2493 } && test -s conftest.$ac_objext; then
2496 echo "$as_me: failed program was:" >&5
2497 sed 's/^/| /' conftest.$ac_ext >&5
2502 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2503 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2506 { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2507 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
2508 GCC=`test $ac_compiler_gnu = yes && echo yes`
2509 ac_test_CFLAGS=${CFLAGS+set}
2510 ac_save_CFLAGS=$CFLAGS
2511 { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2512 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
2513 if test "${ac_cv_prog_cc_g+set}" = set; then
2514 echo $ECHO_N "(cached) $ECHO_C" >&6
2516 ac_save_c_werror_flag=$ac_c_werror_flag
2517 ac_c_werror_flag=yes
2520 cat >conftest.$ac_ext <<_ACEOF
2523 cat confdefs.h >>conftest.$ac_ext
2524 cat >>conftest.$ac_ext <<_ACEOF
2525 /* end confdefs.h. */
2535 rm -f conftest.$ac_objext
2536 if { (ac_try="$ac_compile"
2538 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2539 *) ac_try_echo=$ac_try;;
2541 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2542 (eval "$ac_compile") 2>conftest.er1
2544 grep -v '^ *+' conftest.er1 >conftest.err
2546 cat conftest.err >&5
2547 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2548 (exit $ac_status); } && {
2549 test -z "$ac_c_werror_flag" ||
2550 test ! -s conftest.err
2551 } && test -s conftest.$ac_objext; then
2554 echo "$as_me: failed program was:" >&5
2555 sed 's/^/| /' conftest.$ac_ext >&5
2558 cat >conftest.$ac_ext <<_ACEOF
2561 cat confdefs.h >>conftest.$ac_ext
2562 cat >>conftest.$ac_ext <<_ACEOF
2563 /* end confdefs.h. */
2573 rm -f conftest.$ac_objext
2574 if { (ac_try="$ac_compile"
2576 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2577 *) ac_try_echo=$ac_try;;
2579 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2580 (eval "$ac_compile") 2>conftest.er1
2582 grep -v '^ *+' conftest.er1 >conftest.err
2584 cat conftest.err >&5
2585 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2586 (exit $ac_status); } && {
2587 test -z "$ac_c_werror_flag" ||
2588 test ! -s conftest.err
2589 } && test -s conftest.$ac_objext; then
2592 echo "$as_me: failed program was:" >&5
2593 sed 's/^/| /' conftest.$ac_ext >&5
2595 ac_c_werror_flag=$ac_save_c_werror_flag
2597 cat >conftest.$ac_ext <<_ACEOF
2600 cat confdefs.h >>conftest.$ac_ext
2601 cat >>conftest.$ac_ext <<_ACEOF
2602 /* end confdefs.h. */
2612 rm -f conftest.$ac_objext
2613 if { (ac_try="$ac_compile"
2615 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2616 *) ac_try_echo=$ac_try;;
2618 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2619 (eval "$ac_compile") 2>conftest.er1
2621 grep -v '^ *+' conftest.er1 >conftest.err
2623 cat conftest.err >&5
2624 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2625 (exit $ac_status); } && {
2626 test -z "$ac_c_werror_flag" ||
2627 test ! -s conftest.err
2628 } && test -s conftest.$ac_objext; then
2631 echo "$as_me: failed program was:" >&5
2632 sed 's/^/| /' conftest.$ac_ext >&5
2637 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2640 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2643 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2644 ac_c_werror_flag=$ac_save_c_werror_flag
2646 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2647 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
2648 if test "$ac_test_CFLAGS" = set; then
2649 CFLAGS=$ac_save_CFLAGS
2650 elif test $ac_cv_prog_cc_g = yes; then
2651 if test "$GCC" = yes; then
2657 if test "$GCC" = yes; then
2663 { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
2664 echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
2665 if test "${ac_cv_prog_cc_c89+set}" = set; then
2666 echo $ECHO_N "(cached) $ECHO_C" >&6
2668 ac_cv_prog_cc_c89=no
2670 cat >conftest.$ac_ext <<_ACEOF
2673 cat confdefs.h >>conftest.$ac_ext
2674 cat >>conftest.$ac_ext <<_ACEOF
2675 /* end confdefs.h. */
2678 #include <sys/types.h>
2679 #include <sys/stat.h>
2680 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2681 struct buf { int x; };
2682 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2683 static char *e (p, i)
2689 static char *f (char * (*g) (char **, int), char **p, ...)
2694 s = g (p, va_arg (v,int));
2699 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
2700 function prototypes and stuff, but not '\xHH' hex character constants.
2701 These don't provoke an error unfortunately, instead are silently treated
2702 as 'x'. The following induces an error, until -std is added to get
2703 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
2704 array size at least. It's necessary to write '\x00'==0 to get something
2705 that's true only with -std. */
2706 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2708 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
2709 inside strings and character constants. */
2711 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
2713 int test (int i, double x);
2714 struct s1 {int (*f) (int a);};
2715 struct s2 {int (*f) (double a);};
2716 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2722 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2727 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
2728 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2730 CC="$ac_save_CC $ac_arg"
2731 rm -f conftest.$ac_objext
2732 if { (ac_try="$ac_compile"
2734 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2735 *) ac_try_echo=$ac_try;;
2737 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2738 (eval "$ac_compile") 2>conftest.er1
2740 grep -v '^ *+' conftest.er1 >conftest.err
2742 cat conftest.err >&5
2743 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2744 (exit $ac_status); } && {
2745 test -z "$ac_c_werror_flag" ||
2746 test ! -s conftest.err
2747 } && test -s conftest.$ac_objext; then
2748 ac_cv_prog_cc_c89=$ac_arg
2750 echo "$as_me: failed program was:" >&5
2751 sed 's/^/| /' conftest.$ac_ext >&5
2756 rm -f core conftest.err conftest.$ac_objext
2757 test "x$ac_cv_prog_cc_c89" != "xno" && break
2759 rm -f conftest.$ac_ext
2764 case "x$ac_cv_prog_cc_c89" in
2766 { echo "$as_me:$LINENO: result: none needed" >&5
2767 echo "${ECHO_T}none needed" >&6; } ;;
2769 { echo "$as_me:$LINENO: result: unsupported" >&5
2770 echo "${ECHO_T}unsupported" >&6; } ;;
2772 CC="$CC $ac_cv_prog_cc_c89"
2773 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
2774 echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
2779 ac_cpp='$CPP $CPPFLAGS'
2780 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2781 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2782 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2785 ac_cpp='$CPP $CPPFLAGS'
2786 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2787 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2788 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2789 { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
2790 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
2791 # On Suns, sometimes $CPP names a directory.
2792 if test -n "$CPP" && test -d "$CPP"; then
2795 if test -z "$CPP"; then
2796 if test "${ac_cv_prog_CPP+set}" = set; then
2797 echo $ECHO_N "(cached) $ECHO_C" >&6
2799 # Double quotes because CPP needs to be expanded
2800 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
2803 for ac_c_preproc_warn_flag in '' yes
2805 # Use a header file that comes with gcc, so configuring glibc
2806 # with a fresh cross-compiler works.
2807 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2808 # <limits.h> exists even on freestanding compilers.
2809 # On the NeXT, cc -E runs the code through the compiler's parser,
2810 # not just through cpp. "Syntax error" is here to catch this case.
2811 cat >conftest.$ac_ext <<_ACEOF
2814 cat confdefs.h >>conftest.$ac_ext
2815 cat >>conftest.$ac_ext <<_ACEOF
2816 /* end confdefs.h. */
2818 # include <limits.h>
2820 # include <assert.h>
2824 if { (ac_try="$ac_cpp conftest.$ac_ext"
2826 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2827 *) ac_try_echo=$ac_try;;
2829 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2830 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
2832 grep -v '^ *+' conftest.er1 >conftest.err
2834 cat conftest.err >&5
2835 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2836 (exit $ac_status); } >/dev/null && {
2837 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
2838 test ! -s conftest.err
2842 echo "$as_me: failed program was:" >&5
2843 sed 's/^/| /' conftest.$ac_ext >&5
2845 # Broken: fails on valid input.
2849 rm -f conftest.err conftest.$ac_ext
2851 # OK, works on sane cases. Now check whether nonexistent headers
2852 # can be detected and how.
2853 cat >conftest.$ac_ext <<_ACEOF
2856 cat confdefs.h >>conftest.$ac_ext
2857 cat >>conftest.$ac_ext <<_ACEOF
2858 /* end confdefs.h. */
2859 #include <ac_nonexistent.h>
2861 if { (ac_try="$ac_cpp conftest.$ac_ext"
2863 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2864 *) ac_try_echo=$ac_try;;
2866 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2867 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
2869 grep -v '^ *+' conftest.er1 >conftest.err
2871 cat conftest.err >&5
2872 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2873 (exit $ac_status); } >/dev/null && {
2874 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
2875 test ! -s conftest.err
2877 # Broken: success on invalid input.
2880 echo "$as_me: failed program was:" >&5
2881 sed 's/^/| /' conftest.$ac_ext >&5
2883 # Passes both tests.
2888 rm -f conftest.err conftest.$ac_ext
2891 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2892 rm -f conftest.err conftest.$ac_ext
2893 if $ac_preproc_ok; then
2905 { echo "$as_me:$LINENO: result: $CPP" >&5
2906 echo "${ECHO_T}$CPP" >&6; }
2908 for ac_c_preproc_warn_flag in '' yes
2910 # Use a header file that comes with gcc, so configuring glibc
2911 # with a fresh cross-compiler works.
2912 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2913 # <limits.h> exists even on freestanding compilers.
2914 # On the NeXT, cc -E runs the code through the compiler's parser,
2915 # not just through cpp. "Syntax error" is here to catch this case.
2916 cat >conftest.$ac_ext <<_ACEOF
2919 cat confdefs.h >>conftest.$ac_ext
2920 cat >>conftest.$ac_ext <<_ACEOF
2921 /* end confdefs.h. */
2923 # include <limits.h>
2925 # include <assert.h>
2929 if { (ac_try="$ac_cpp conftest.$ac_ext"
2931 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2932 *) ac_try_echo=$ac_try;;
2934 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2935 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
2937 grep -v '^ *+' conftest.er1 >conftest.err
2939 cat conftest.err >&5
2940 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2941 (exit $ac_status); } >/dev/null && {
2942 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
2943 test ! -s conftest.err
2947 echo "$as_me: failed program was:" >&5
2948 sed 's/^/| /' conftest.$ac_ext >&5
2950 # Broken: fails on valid input.
2954 rm -f conftest.err conftest.$ac_ext
2956 # OK, works on sane cases. Now check whether nonexistent headers
2957 # can be detected and how.
2958 cat >conftest.$ac_ext <<_ACEOF
2961 cat confdefs.h >>conftest.$ac_ext
2962 cat >>conftest.$ac_ext <<_ACEOF
2963 /* end confdefs.h. */
2964 #include <ac_nonexistent.h>
2966 if { (ac_try="$ac_cpp conftest.$ac_ext"
2968 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2969 *) ac_try_echo=$ac_try;;
2971 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2972 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
2974 grep -v '^ *+' conftest.er1 >conftest.err
2976 cat conftest.err >&5
2977 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2978 (exit $ac_status); } >/dev/null && {
2979 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
2980 test ! -s conftest.err
2982 # Broken: success on invalid input.
2985 echo "$as_me: failed program was:" >&5
2986 sed 's/^/| /' conftest.$ac_ext >&5
2988 # Passes both tests.
2993 rm -f conftest.err conftest.$ac_ext
2996 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2997 rm -f conftest.err conftest.$ac_ext
2998 if $ac_preproc_ok; then
3001 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3002 See \`config.log' for more details." >&5
3003 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3004 See \`config.log' for more details." >&2;}
3005 { (exit 1); exit 1; }; }
3009 ac_cpp='$CPP $CPPFLAGS'
3010 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3011 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3012 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3015 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
3016 if test -f "$ac_dir/install-sh"; then
3018 ac_install_sh="$ac_aux_dir/install-sh -c"
3020 elif test -f "$ac_dir/install.sh"; then
3022 ac_install_sh="$ac_aux_dir/install.sh -c"
3024 elif test -f "$ac_dir/shtool"; then
3026 ac_install_sh="$ac_aux_dir/shtool install -c"
3030 if test -z "$ac_aux_dir"; then
3031 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&5
3032 echo "$as_me: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&2;}
3033 { (exit 1); exit 1; }; }
3036 # These three variables are undocumented and unsupported,
3037 # and are intended to be withdrawn in a future Autoconf release.
3038 # They can cause serious problems if a builder's source tree is in a directory
3039 # whose full name contains unusual characters.
3040 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
3041 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
3042 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
3045 # Find a good install program. We prefer a C program (faster),
3046 # so one script is as good as another. But avoid the broken or
3047 # incompatible versions:
3048 # SysV /etc/install, /usr/sbin/install
3049 # SunOS /usr/etc/install
3050 # IRIX /sbin/install
3052 # AmigaOS /C/install, which installs bootblocks on floppy discs
3053 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3054 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
3055 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3056 # OS/2's system install, which has a completely different semantic
3057 # ./install, which can be erroneously created by make from ./install.sh.
3058 { echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
3059 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
3060 if test -z "$INSTALL"; then
3061 if test "${ac_cv_path_install+set}" = set; then
3062 echo $ECHO_N "(cached) $ECHO_C" >&6
3064 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3068 test -z "$as_dir" && as_dir=.
3069 # Account for people who put trailing slashes in PATH elements.
3071 ./ | .// | /cC/* | \
3072 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
3073 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
3076 # OSF1 and SCO ODT 3.0 have their own names for install.
3077 # Don't use installbsd from OSF since it installs stuff as root
3079 for ac_prog in ginstall scoinst install; do
3080 for ac_exec_ext in '' $ac_executable_extensions; do
3081 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
3082 if test $ac_prog = install &&
3083 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3084 # AIX install. It has an incompatible calling convention.
3086 elif test $ac_prog = install &&
3087 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3088 # program-specific install script used by HP pwplus--don't use.
3091 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
3104 if test "${ac_cv_path_install+set}" = set; then
3105 INSTALL=$ac_cv_path_install
3107 # As a last resort, use the slow shell script. Don't cache a
3108 # value for INSTALL within a source directory, because that will
3109 # break other packages using the cache if that directory is
3110 # removed, or if the value is a relative name.
3111 INSTALL=$ac_install_sh
3114 { echo "$as_me:$LINENO: result: $INSTALL" >&5
3115 echo "${ECHO_T}$INSTALL" >&6; }
3117 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3118 # It thinks the first close brace ends the variable substitution.
3119 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
3121 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
3123 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3125 if test -n "$ac_tool_prefix"; then
3126 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
3127 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
3128 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3129 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3130 if test "${ac_cv_prog_RANLIB+set}" = set; then
3131 echo $ECHO_N "(cached) $ECHO_C" >&6
3133 if test -n "$RANLIB"; then
3134 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
3136 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3140 test -z "$as_dir" && as_dir=.
3141 for ac_exec_ext in '' $ac_executable_extensions; do
3142 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3143 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
3144 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3153 RANLIB=$ac_cv_prog_RANLIB
3154 if test -n "$RANLIB"; then
3155 { echo "$as_me:$LINENO: result: $RANLIB" >&5
3156 echo "${ECHO_T}$RANLIB" >&6; }
3158 { echo "$as_me:$LINENO: result: no" >&5
3159 echo "${ECHO_T}no" >&6; }
3164 if test -z "$ac_cv_prog_RANLIB"; then
3165 ac_ct_RANLIB=$RANLIB
3166 # Extract the first word of "ranlib", so it can be a program name with args.
3167 set dummy ranlib; ac_word=$2
3168 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3169 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3170 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
3171 echo $ECHO_N "(cached) $ECHO_C" >&6
3173 if test -n "$ac_ct_RANLIB"; then
3174 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
3176 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3180 test -z "$as_dir" && as_dir=.
3181 for ac_exec_ext in '' $ac_executable_extensions; do
3182 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3183 ac_cv_prog_ac_ct_RANLIB="ranlib"
3184 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3193 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
3194 if test -n "$ac_ct_RANLIB"; then
3195 { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
3196 echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
3198 { echo "$as_me:$LINENO: result: no" >&5
3199 echo "${ECHO_T}no" >&6; }
3202 if test "x$ac_ct_RANLIB" = x; then
3205 case $cross_compiling:$ac_tool_warned in
3207 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
3208 whose name does not start with the host triplet. If you think this
3209 configuration is useful to you, please write to autoconf@gnu.org." >&5
3210 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
3211 whose name does not start with the host triplet. If you think this
3212 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
3213 ac_tool_warned=yes ;;
3215 RANLIB=$ac_ct_RANLIB
3218 RANLIB="$ac_cv_prog_RANLIB"
3221 # Extract the first word of "autoconf", so it can be a program name with args.
3222 set dummy autoconf; ac_word=$2
3223 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3224 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3225 if test "${ac_cv_prog_AUTOCONF+set}" = set; then
3226 echo $ECHO_N "(cached) $ECHO_C" >&6
3228 if test -n "$AUTOCONF"; then
3229 ac_cv_prog_AUTOCONF="$AUTOCONF" # Let the user override the test.
3231 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3235 test -z "$as_dir" && as_dir=.
3236 for ac_exec_ext in '' $ac_executable_extensions; do
3237 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3238 ac_cv_prog_AUTOCONF="autoconf"
3239 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3246 test -z "$ac_cv_prog_AUTOCONF" && ac_cv_prog_AUTOCONF=":"
3249 AUTOCONF=$ac_cv_prog_AUTOCONF
3250 if test -n "$AUTOCONF"; then
3251 { echo "$as_me:$LINENO: result: $AUTOCONF" >&5
3252 echo "${ECHO_T}$AUTOCONF" >&6; }
3254 { echo "$as_me:$LINENO: result: no" >&5
3255 echo "${ECHO_T}no" >&6; }
3259 # Extract the first word of "strip", so it can be a program name with args.
3260 set dummy strip; ac_word=$2
3261 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3262 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3263 if test "${ac_cv_prog_STRIP+set}" = set; then
3264 echo $ECHO_N "(cached) $ECHO_C" >&6
3266 if test -n "$STRIP"; then
3267 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
3269 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3273 test -z "$as_dir" && as_dir=.
3274 for ac_exec_ext in '' $ac_executable_extensions; do
3275 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3276 ac_cv_prog_STRIP="strip"
3277 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3284 test -z "$ac_cv_prog_STRIP" && ac_cv_prog_STRIP=":"
3287 STRIP=$ac_cv_prog_STRIP
3288 if test -n "$STRIP"; then
3289 { echo "$as_me:$LINENO: result: $STRIP" >&5
3290 echo "${ECHO_T}$STRIP" >&6; }
3292 { echo "$as_me:$LINENO: result: no" >&5
3293 echo "${ECHO_T}no" >&6; }
3297 # Extract the first word of "as", so it can be a program name with args.
3298 set dummy as; ac_word=$2
3299 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3300 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3301 if test "${ac_cv_prog_AS+set}" = set; then
3302 echo $ECHO_N "(cached) $ECHO_C" >&6
3304 if test -n "$AS"; then
3305 ac_cv_prog_AS="$AS" # Let the user override the test.
3307 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3311 test -z "$as_dir" && as_dir=.
3312 for ac_exec_ext in '' $ac_executable_extensions; do
3313 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3315 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3322 test -z "$ac_cv_prog_AS" && ac_cv_prog_AS=":"
3326 if test -n "$AS"; then
3327 { echo "$as_me:$LINENO: result: $AS" >&5
3328 echo "${ECHO_T}$AS" >&6; }
3330 { echo "$as_me:$LINENO: result: no" >&5
3331 echo "${ECHO_T}no" >&6; }
3335 # Extract the first word of "cp", so it can be a program name with args.
3336 set dummy cp; ac_word=$2
3337 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3338 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3339 if test "${ac_cv_prog_CP+set}" = set; then
3340 echo $ECHO_N "(cached) $ECHO_C" >&6
3342 if test -n "$CP"; then
3343 ac_cv_prog_CP="$CP" # Let the user override the test.
3345 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3349 test -z "$as_dir" && as_dir=.
3350 for ac_exec_ext in '' $ac_executable_extensions; do
3351 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3353 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3360 test -z "$ac_cv_prog_CP" && ac_cv_prog_CP=":"
3364 if test -n "$CP"; then
3365 { echo "$as_me:$LINENO: result: $CP" >&5
3366 echo "${ECHO_T}$CP" >&6; }
3368 { echo "$as_me:$LINENO: result: no" >&5
3369 echo "${ECHO_T}no" >&6; }
3374 for ac_prog in flex lex
3376 # Extract the first word of "$ac_prog", so it can be a program name with args.
3377 set dummy $ac_prog; ac_word=$2
3378 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3379 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3380 if test "${ac_cv_prog_LEX+set}" = set; then
3381 echo $ECHO_N "(cached) $ECHO_C" >&6
3383 if test -n "$LEX"; then
3384 ac_cv_prog_LEX="$LEX" # Let the user override the test.
3386 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3390 test -z "$as_dir" && as_dir=.
3391 for ac_exec_ext in '' $ac_executable_extensions; do
3392 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3393 ac_cv_prog_LEX="$ac_prog"
3394 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3404 if test -n "$LEX"; then
3405 { echo "$as_me:$LINENO: result: $LEX" >&5
3406 echo "${ECHO_T}$LEX" >&6; }
3408 { echo "$as_me:$LINENO: result: no" >&5
3409 echo "${ECHO_T}no" >&6; }
3413 test -n "$LEX" && break
3415 test -n "$LEX" || LEX=":"
3418 for ac_prog in 'bison -y' byacc yacc
3420 # Extract the first word of "$ac_prog", so it can be a program name with args.
3421 set dummy $ac_prog; ac_word=$2
3422 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3423 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3424 if test "${ac_cv_prog_YACC+set}" = set; then
3425 echo $ECHO_N "(cached) $ECHO_C" >&6
3427 if test -n "$YACC"; then
3428 ac_cv_prog_YACC="$YACC" # Let the user override the test.
3430 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3434 test -z "$as_dir" && as_dir=.
3435 for ac_exec_ext in '' $ac_executable_extensions; do
3436 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3437 ac_cv_prog_YACC="$ac_prog"
3438 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3447 YACC=$ac_cv_prog_YACC
3448 if test -n "$YACC"; then
3449 { echo "$as_me:$LINENO: result: $YACC" >&5
3450 echo "${ECHO_T}$YACC" >&6; }
3452 { echo "$as_me:$LINENO: result: no" >&5
3453 echo "${ECHO_T}no" >&6; }
3457 test -n "$YACC" && break
3459 test -n "$YACC" || YACC=":"
3464 if test "$YACC" = ":"; then
3465 { { echo "$as_me:$LINENO: error: Cannot find required program bison." >&5
3466 echo "$as_me: error: Cannot find required program bison." >&2;}
3467 { (exit 1); exit 1; }; }
3470 if test "$LEX" = ":"; then
3471 { { echo "$as_me:$LINENO: error: Cannot find required program flex." >&5
3472 echo "$as_me: error: Cannot find required program flex." >&2;}
3473 { (exit 1); exit 1; }; }
3478 ac_cpp='$CPP $CPPFLAGS'
3479 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3480 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3481 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3485 # Checking for functions
3486 # ===========================================================================
3489 for ac_func in strerror
3491 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
3492 { echo "$as_me:$LINENO: checking for $ac_func" >&5
3493 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
3494 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
3495 echo $ECHO_N "(cached) $ECHO_C" >&6
3497 cat >conftest.$ac_ext <<_ACEOF
3500 cat confdefs.h >>conftest.$ac_ext
3501 cat >>conftest.$ac_ext <<_ACEOF
3502 /* end confdefs.h. */
3503 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
3504 For example, HP-UX 11i <limits.h> declares gettimeofday. */
3505 #define $ac_func innocuous_$ac_func
3507 /* System header to define __stub macros and hopefully few prototypes,
3508 which can conflict with char $ac_func (); below.
3509 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3510 <limits.h> exists even on freestanding compilers. */
3513 # include <limits.h>
3515 # include <assert.h>
3520 /* Override any GCC internal prototype to avoid an error.
3521 Use char because int might match the return type of a GCC
3522 builtin and then its argument prototype would still apply. */
3527 /* The GNU C library defines this for functions which it implements
3528 to always fail with ENOSYS. Some functions are actually named
3529 something starting with __ and the normal name is an alias. */
3530 #if defined __stub_$ac_func || defined __stub___$ac_func
3542 rm -f conftest.$ac_objext conftest$ac_exeext
3543 if { (ac_try="$ac_link"
3545 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3546 *) ac_try_echo=$ac_try;;
3548 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3549 (eval "$ac_link") 2>conftest.er1
3551 grep -v '^ *+' conftest.er1 >conftest.err
3553 cat conftest.err >&5
3554 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3555 (exit $ac_status); } && {
3556 test -z "$ac_c_werror_flag" ||
3557 test ! -s conftest.err
3558 } && test -s conftest$ac_exeext &&
3559 $as_test_x conftest$ac_exeext; then
3560 eval "$as_ac_var=yes"
3562 echo "$as_me: failed program was:" >&5
3563 sed 's/^/| /' conftest.$ac_ext >&5
3565 eval "$as_ac_var=no"
3568 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
3569 conftest$ac_exeext conftest.$ac_ext
3571 ac_res=`eval echo '${'$as_ac_var'}'`
3572 { echo "$as_me:$LINENO: result: $ac_res" >&5
3573 echo "${ECHO_T}$ac_res" >&6; }
3574 if test `eval echo '${'$as_ac_var'}'` = yes; then
3575 cat >>confdefs.h <<_ACEOF
3576 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
3586 for ac_func in vsnprintf snprintf vsprintf mkstemp
3588 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
3589 { echo "$as_me:$LINENO: checking for $ac_func" >&5
3590 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
3591 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
3592 echo $ECHO_N "(cached) $ECHO_C" >&6
3594 cat >conftest.$ac_ext <<_ACEOF
3597 cat confdefs.h >>conftest.$ac_ext
3598 cat >>conftest.$ac_ext <<_ACEOF
3599 /* end confdefs.h. */
3600 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
3601 For example, HP-UX 11i <limits.h> declares gettimeofday. */
3602 #define $ac_func innocuous_$ac_func
3604 /* System header to define __stub macros and hopefully few prototypes,
3605 which can conflict with char $ac_func (); below.
3606 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3607 <limits.h> exists even on freestanding compilers. */
3610 # include <limits.h>
3612 # include <assert.h>
3617 /* Override any GCC internal prototype to avoid an error.
3618 Use char because int might match the return type of a GCC
3619 builtin and then its argument prototype would still apply. */
3624 /* The GNU C library defines this for functions which it implements
3625 to always fail with ENOSYS. Some functions are actually named
3626 something starting with __ and the normal name is an alias. */
3627 #if defined __stub_$ac_func || defined __stub___$ac_func
3639 rm -f conftest.$ac_objext conftest$ac_exeext
3640 if { (ac_try="$ac_link"
3642 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3643 *) ac_try_echo=$ac_try;;
3645 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3646 (eval "$ac_link") 2>conftest.er1
3648 grep -v '^ *+' conftest.er1 >conftest.err
3650 cat conftest.err >&5
3651 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3652 (exit $ac_status); } && {
3653 test -z "$ac_c_werror_flag" ||
3654 test ! -s conftest.err
3655 } && test -s conftest$ac_exeext &&
3656 $as_test_x conftest$ac_exeext; then
3657 eval "$as_ac_var=yes"
3659 echo "$as_me: failed program was:" >&5
3660 sed 's/^/| /' conftest.$ac_ext >&5
3662 eval "$as_ac_var=no"
3665 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
3666 conftest$ac_exeext conftest.$ac_ext
3668 ac_res=`eval echo '${'$as_ac_var'}'`
3669 { echo "$as_me:$LINENO: result: $ac_res" >&5
3670 echo "${ECHO_T}$ac_res" >&6; }
3671 if test `eval echo '${'$as_ac_var'}'` = yes; then
3672 cat >>confdefs.h <<_ACEOF
3673 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
3682 # ===========================================================================
3684 # adl_DD_COPT macro checks if the compiler specified as the 1st parameter
3685 # supports option specified as the 2nd parameter
3686 # For example: DD_CPORT(CXX, fPIC)
3690 # This macro expands DIR and assigns it to RET.
3691 # If DIR is NONE, then it's replaced by DEFAULT.
3693 # Based on AC_DEFINE_DIR
3697 # adl_EXPAND(prefix, "/usr/local", expanded_prefix)
3701 # adl_NORMALIZE_PATH
3703 # - empty paths are changed to '.'
3704 # - trailing slashes are removed
3705 # - repeated slashes are squeezed except a leading doubled slash '//'
3706 # (which might indicate a networked disk on some OS).
3709 # REFERENCE_STRING is used to turn '/' into '\' and vice-versa: if
3710 # REFERENCE_STRING contains some backslashes, all slashes and backslashes
3711 # are turned into backslashes, otherwise they are all turned into slashes.
3713 # This makes processing of DOS filenames quite easier, because you can turn a
3714 # filename to the Unix notation, make your processing, and turn it back to
3715 # original notation.
3720 # adl_COMPUTE_RELATIVE_PATH
3722 # PATH_LIST is a space-separated list of colon-separated triplets of the form
3723 # 'FROM:TO:RESULT'. This function iterates over these triplets and set $RESULT
3724 # to the relative path from $FROM to $TO. Note that $FROM and $TO needs to be
3725 # absolute filenames for this macro to success.
3731 ## The following helper macros are too fragile to be used out
3732 ## of adl_COMPUTE_RELATIVE_PATHS (mainly because they assume that
3733 ## paths are normalized), that's why I'm keeping them in the same file.
3734 ## Still, some of them maybe worth to reuse.
3752 # Checking characteristics of compilers and other programs
3753 # ===========================================================================
3754 { echo "$as_me:$LINENO: checking whether preprocessor accepts -MM or -M" >&5
3755 echo $ECHO_N "checking whether preprocessor accepts -MM or -M... $ECHO_C" >&6; }
3756 if test "${sdcc_cv_MM+set}" = set; then
3757 echo $ECHO_N "(cached) $ECHO_C" >&6
3759 echo "#include <stdio.h>" >_test_.c
3761 $CPP -v -MM _test_.c 1>&5 2>&5
3762 if test "$?" = "0"; then
3769 { echo "$as_me:$LINENO: result: $sdcc_cv_MM" >&5
3770 echo "${ECHO_T}$sdcc_cv_MM" >&6; }
3774 # This is the first time when CFLAGS are set/modified!!
3776 { echo "$as_me:$LINENO: checking whether $CC accepts -ggdb" >&5
3777 echo $ECHO_N "checking whether $CC accepts -ggdb... $ECHO_C" >&6; }
3778 if test "${sdcc_cv_CCggdb+set}" = set; then
3779 echo $ECHO_N "(cached) $ECHO_C" >&6
3785 $CC -v -ggdb -c _test_.c 1>&5 2>&5
3786 if test "$?" = "0"; then
3787 sdcc_cv_CCggdb="yes"
3791 rm -f _test_.* a.out
3793 { echo "$as_me:$LINENO: result: $sdcc_cv_CCggdb" >&5
3794 echo "${ECHO_T}$sdcc_cv_CCggdb" >&6; }
3796 if test "$sdcc_cv_CCggdb" = "yes"; then
3797 CFLAGS="-ggdb ${CFLAGS}"
3801 { echo "$as_me:$LINENO: checking whether $CC accepts -pipe" >&5
3802 echo $ECHO_N "checking whether $CC accepts -pipe... $ECHO_C" >&6; }
3803 if test "${sdcc_cv_CCpipe+set}" = set; then
3804 echo $ECHO_N "(cached) $ECHO_C" >&6
3810 $CC -v -pipe -c _test_.c 1>&5 2>&5
3811 if test "$?" = "0"; then
3812 sdcc_cv_CCpipe="yes"
3816 rm -f _test_.* a.out
3818 { echo "$as_me:$LINENO: result: $sdcc_cv_CCpipe" >&5
3819 echo "${ECHO_T}$sdcc_cv_CCpipe" >&6; }
3821 if test "$sdcc_cv_CCpipe" = "yes"; then
3822 CFLAGS="-pipe $CFLAGS"
3826 # Checks for typedefs, structures, and compiler characteristics.
3827 # ===========================================================================
3828 { echo "$as_me:$LINENO: checking return type of signal handlers" >&5
3829 echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6; }
3830 if test "${ac_cv_type_signal+set}" = set; then
3831 echo $ECHO_N "(cached) $ECHO_C" >&6
3833 cat >conftest.$ac_ext <<_ACEOF
3836 cat confdefs.h >>conftest.$ac_ext
3837 cat >>conftest.$ac_ext <<_ACEOF
3838 /* end confdefs.h. */
3839 #include <sys/types.h>
3845 return *(signal (0, 0)) (0) == 1;
3850 rm -f conftest.$ac_objext
3851 if { (ac_try="$ac_compile"
3853 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3854 *) ac_try_echo=$ac_try;;
3856 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3857 (eval "$ac_compile") 2>conftest.er1
3859 grep -v '^ *+' conftest.er1 >conftest.err
3861 cat conftest.err >&5
3862 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3863 (exit $ac_status); } && {
3864 test -z "$ac_c_werror_flag" ||
3865 test ! -s conftest.err
3866 } && test -s conftest.$ac_objext; then
3867 ac_cv_type_signal=int
3869 echo "$as_me: failed program was:" >&5
3870 sed 's/^/| /' conftest.$ac_ext >&5
3872 ac_cv_type_signal=void
3875 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3877 { echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
3878 echo "${ECHO_T}$ac_cv_type_signal" >&6; }
3880 cat >>confdefs.h <<_ACEOF
3881 #define RETSIGTYPE $ac_cv_type_signal
3887 { echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
3888 echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
3889 if test "${ac_cv_path_GREP+set}" = set; then
3890 echo $ECHO_N "(cached) $ECHO_C" >&6
3892 # Extract the first word of "grep ggrep" to use in msg output
3893 if test -z "$GREP"; then
3894 set dummy grep ggrep; ac_prog_name=$2
3895 if test "${ac_cv_path_GREP+set}" = set; then
3896 echo $ECHO_N "(cached) $ECHO_C" >&6
3898 ac_path_GREP_found=false
3899 # Loop through the user's path and test for each of PROGNAME-LIST
3900 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3901 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3904 test -z "$as_dir" && as_dir=.
3905 for ac_prog in grep ggrep; do
3906 for ac_exec_ext in '' $ac_executable_extensions; do
3907 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
3908 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
3909 # Check for GNU ac_path_GREP and select it if it is found.
3910 # Check for GNU $ac_path_GREP
3911 case `"$ac_path_GREP" --version 2>&1` in
3913 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
3916 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
3919 cat "conftest.in" "conftest.in" >"conftest.tmp"
3920 mv "conftest.tmp" "conftest.in"
3921 cp "conftest.in" "conftest.nl"
3922 echo 'GREP' >> "conftest.nl"
3923 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3924 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3925 ac_count=`expr $ac_count + 1`
3926 if test $ac_count -gt ${ac_path_GREP_max-0}; then
3927 # Best one so far, save it but keep looking for a better one
3928 ac_cv_path_GREP="$ac_path_GREP"
3929 ac_path_GREP_max=$ac_count
3931 # 10*(2^10) chars as input seems more than enough
3932 test $ac_count -gt 10 && break
3934 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3938 $ac_path_GREP_found && break 3
3948 GREP="$ac_cv_path_GREP"
3949 if test -z "$GREP"; then
3950 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3951 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3952 { (exit 1); exit 1; }; }
3956 ac_cv_path_GREP=$GREP
3961 { echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
3962 echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
3963 GREP="$ac_cv_path_GREP"
3966 { echo "$as_me:$LINENO: checking for egrep" >&5
3967 echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
3968 if test "${ac_cv_path_EGREP+set}" = set; then
3969 echo $ECHO_N "(cached) $ECHO_C" >&6
3971 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
3972 then ac_cv_path_EGREP="$GREP -E"
3974 # Extract the first word of "egrep" to use in msg output
3975 if test -z "$EGREP"; then
3976 set dummy egrep; ac_prog_name=$2
3977 if test "${ac_cv_path_EGREP+set}" = set; then
3978 echo $ECHO_N "(cached) $ECHO_C" >&6
3980 ac_path_EGREP_found=false
3981 # Loop through the user's path and test for each of PROGNAME-LIST
3982 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3983 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3986 test -z "$as_dir" && as_dir=.
3987 for ac_prog in egrep; do
3988 for ac_exec_ext in '' $ac_executable_extensions; do
3989 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
3990 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
3991 # Check for GNU ac_path_EGREP and select it if it is found.
3992 # Check for GNU $ac_path_EGREP
3993 case `"$ac_path_EGREP" --version 2>&1` in
3995 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
3998 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
4001 cat "conftest.in" "conftest.in" >"conftest.tmp"
4002 mv "conftest.tmp" "conftest.in"
4003 cp "conftest.in" "conftest.nl"
4004 echo 'EGREP' >> "conftest.nl"
4005 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4006 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4007 ac_count=`expr $ac_count + 1`
4008 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4009 # Best one so far, save it but keep looking for a better one
4010 ac_cv_path_EGREP="$ac_path_EGREP"
4011 ac_path_EGREP_max=$ac_count
4013 # 10*(2^10) chars as input seems more than enough
4014 test $ac_count -gt 10 && break
4016 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4020 $ac_path_EGREP_found && break 3
4030 EGREP="$ac_cv_path_EGREP"
4031 if test -z "$EGREP"; then
4032 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
4033 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
4034 { (exit 1); exit 1; }; }
4038 ac_cv_path_EGREP=$EGREP
4044 { echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
4045 echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
4046 EGREP="$ac_cv_path_EGREP"
4049 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
4050 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
4051 if test "${ac_cv_header_stdc+set}" = set; then
4052 echo $ECHO_N "(cached) $ECHO_C" >&6
4054 cat >conftest.$ac_ext <<_ACEOF
4057 cat confdefs.h >>conftest.$ac_ext
4058 cat >>conftest.$ac_ext <<_ACEOF
4059 /* end confdefs.h. */
4073 rm -f conftest.$ac_objext
4074 if { (ac_try="$ac_compile"
4076 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4077 *) ac_try_echo=$ac_try;;
4079 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4080 (eval "$ac_compile") 2>conftest.er1
4082 grep -v '^ *+' conftest.er1 >conftest.err
4084 cat conftest.err >&5
4085 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4086 (exit $ac_status); } && {
4087 test -z "$ac_c_werror_flag" ||
4088 test ! -s conftest.err
4089 } && test -s conftest.$ac_objext; then
4090 ac_cv_header_stdc=yes
4092 echo "$as_me: failed program was:" >&5
4093 sed 's/^/| /' conftest.$ac_ext >&5
4095 ac_cv_header_stdc=no
4098 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4100 if test $ac_cv_header_stdc = yes; then
4101 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4102 cat >conftest.$ac_ext <<_ACEOF
4105 cat confdefs.h >>conftest.$ac_ext
4106 cat >>conftest.$ac_ext <<_ACEOF
4107 /* end confdefs.h. */
4111 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4112 $EGREP "memchr" >/dev/null 2>&1; then
4115 ac_cv_header_stdc=no
4121 if test $ac_cv_header_stdc = yes; then
4122 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4123 cat >conftest.$ac_ext <<_ACEOF
4126 cat confdefs.h >>conftest.$ac_ext
4127 cat >>conftest.$ac_ext <<_ACEOF
4128 /* end confdefs.h. */
4132 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4133 $EGREP "free" >/dev/null 2>&1; then
4136 ac_cv_header_stdc=no
4142 if test $ac_cv_header_stdc = yes; then
4143 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4144 if test "$cross_compiling" = yes; then
4147 cat >conftest.$ac_ext <<_ACEOF
4150 cat confdefs.h >>conftest.$ac_ext
4151 cat >>conftest.$ac_ext <<_ACEOF
4152 /* end confdefs.h. */
4155 #if ((' ' & 0x0FF) == 0x020)
4156 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4157 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4159 # define ISLOWER(c) \
4160 (('a' <= (c) && (c) <= 'i') \
4161 || ('j' <= (c) && (c) <= 'r') \
4162 || ('s' <= (c) && (c) <= 'z'))
4163 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4166 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4171 for (i = 0; i < 256; i++)
4172 if (XOR (islower (i), ISLOWER (i))
4173 || toupper (i) != TOUPPER (i))
4178 rm -f conftest$ac_exeext
4179 if { (ac_try="$ac_link"
4181 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4182 *) ac_try_echo=$ac_try;;
4184 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4185 (eval "$ac_link") 2>&5
4187 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4188 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4189 { (case "(($ac_try" in
4190 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4191 *) ac_try_echo=$ac_try;;
4193 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4194 (eval "$ac_try") 2>&5
4196 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4197 (exit $ac_status); }; }; then
4200 echo "$as_me: program exited with status $ac_status" >&5
4201 echo "$as_me: failed program was:" >&5
4202 sed 's/^/| /' conftest.$ac_ext >&5
4205 ac_cv_header_stdc=no
4207 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4213 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
4214 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
4215 if test $ac_cv_header_stdc = yes; then
4217 cat >>confdefs.h <<\_ACEOF
4218 #define STDC_HEADERS 1
4223 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4233 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4234 inttypes.h stdint.h unistd.h
4236 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4237 { echo "$as_me:$LINENO: checking for $ac_header" >&5
4238 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
4239 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
4240 echo $ECHO_N "(cached) $ECHO_C" >&6
4242 cat >conftest.$ac_ext <<_ACEOF
4245 cat confdefs.h >>conftest.$ac_ext
4246 cat >>conftest.$ac_ext <<_ACEOF
4247 /* end confdefs.h. */
4248 $ac_includes_default
4250 #include <$ac_header>
4252 rm -f conftest.$ac_objext
4253 if { (ac_try="$ac_compile"
4255 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4256 *) ac_try_echo=$ac_try;;
4258 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4259 (eval "$ac_compile") 2>conftest.er1
4261 grep -v '^ *+' conftest.er1 >conftest.err
4263 cat conftest.err >&5
4264 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4265 (exit $ac_status); } && {
4266 test -z "$ac_c_werror_flag" ||
4267 test ! -s conftest.err
4268 } && test -s conftest.$ac_objext; then
4269 eval "$as_ac_Header=yes"
4271 echo "$as_me: failed program was:" >&5
4272 sed 's/^/| /' conftest.$ac_ext >&5
4274 eval "$as_ac_Header=no"
4277 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4279 ac_res=`eval echo '${'$as_ac_Header'}'`
4280 { echo "$as_me:$LINENO: result: $ac_res" >&5
4281 echo "${ECHO_T}$ac_res" >&6; }
4282 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4283 cat >>confdefs.h <<_ACEOF
4284 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4292 { echo "$as_me:$LINENO: checking for char" >&5
4293 echo $ECHO_N "checking for char... $ECHO_C" >&6; }
4294 if test "${ac_cv_type_char+set}" = set; then
4295 echo $ECHO_N "(cached) $ECHO_C" >&6
4297 cat >conftest.$ac_ext <<_ACEOF
4300 cat confdefs.h >>conftest.$ac_ext
4301 cat >>conftest.$ac_ext <<_ACEOF
4302 /* end confdefs.h. */
4303 $ac_includes_default
4304 typedef char ac__type_new_;
4308 if ((ac__type_new_ *) 0)
4310 if (sizeof (ac__type_new_))
4316 rm -f conftest.$ac_objext
4317 if { (ac_try="$ac_compile"
4319 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4320 *) ac_try_echo=$ac_try;;
4322 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4323 (eval "$ac_compile") 2>conftest.er1
4325 grep -v '^ *+' conftest.er1 >conftest.err
4327 cat conftest.err >&5
4328 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4329 (exit $ac_status); } && {
4330 test -z "$ac_c_werror_flag" ||
4331 test ! -s conftest.err
4332 } && test -s conftest.$ac_objext; then
4335 echo "$as_me: failed program was:" >&5
4336 sed 's/^/| /' conftest.$ac_ext >&5
4341 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4343 { echo "$as_me:$LINENO: result: $ac_cv_type_char" >&5
4344 echo "${ECHO_T}$ac_cv_type_char" >&6; }
4346 # The cast to long int works around a bug in the HP C Compiler
4347 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
4348 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
4349 # This bug is HP SR number 8606223364.
4350 { echo "$as_me:$LINENO: checking size of char" >&5
4351 echo $ECHO_N "checking size of char... $ECHO_C" >&6; }
4352 if test "${ac_cv_sizeof_char+set}" = set; then
4353 echo $ECHO_N "(cached) $ECHO_C" >&6
4355 if test "$cross_compiling" = yes; then
4356 # Depending upon the size, compute the lo and hi bounds.
4357 cat >conftest.$ac_ext <<_ACEOF
4360 cat confdefs.h >>conftest.$ac_ext
4361 cat >>conftest.$ac_ext <<_ACEOF
4362 /* end confdefs.h. */
4363 $ac_includes_default
4364 typedef char ac__type_sizeof_;
4368 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
4375 rm -f conftest.$ac_objext
4376 if { (ac_try="$ac_compile"
4378 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4379 *) ac_try_echo=$ac_try;;
4381 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4382 (eval "$ac_compile") 2>conftest.er1
4384 grep -v '^ *+' conftest.er1 >conftest.err
4386 cat conftest.err >&5
4387 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4388 (exit $ac_status); } && {
4389 test -z "$ac_c_werror_flag" ||
4390 test ! -s conftest.err
4391 } && test -s conftest.$ac_objext; then
4394 cat >conftest.$ac_ext <<_ACEOF
4397 cat confdefs.h >>conftest.$ac_ext
4398 cat >>conftest.$ac_ext <<_ACEOF
4399 /* end confdefs.h. */
4400 $ac_includes_default
4401 typedef char ac__type_sizeof_;
4405 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
4412 rm -f conftest.$ac_objext
4413 if { (ac_try="$ac_compile"
4415 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4416 *) ac_try_echo=$ac_try;;
4418 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4419 (eval "$ac_compile") 2>conftest.er1
4421 grep -v '^ *+' conftest.er1 >conftest.err
4423 cat conftest.err >&5
4424 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4425 (exit $ac_status); } && {
4426 test -z "$ac_c_werror_flag" ||
4427 test ! -s conftest.err
4428 } && test -s conftest.$ac_objext; then
4429 ac_hi=$ac_mid; break
4431 echo "$as_me: failed program was:" >&5
4432 sed 's/^/| /' conftest.$ac_ext >&5
4434 ac_lo=`expr $ac_mid + 1`
4435 if test $ac_lo -le $ac_mid; then
4439 ac_mid=`expr 2 '*' $ac_mid + 1`
4442 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4445 echo "$as_me: failed program was:" >&5
4446 sed 's/^/| /' conftest.$ac_ext >&5
4448 cat >conftest.$ac_ext <<_ACEOF
4451 cat confdefs.h >>conftest.$ac_ext
4452 cat >>conftest.$ac_ext <<_ACEOF
4453 /* end confdefs.h. */
4454 $ac_includes_default
4455 typedef char ac__type_sizeof_;
4459 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
4466 rm -f conftest.$ac_objext
4467 if { (ac_try="$ac_compile"
4469 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4470 *) ac_try_echo=$ac_try;;
4472 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4473 (eval "$ac_compile") 2>conftest.er1
4475 grep -v '^ *+' conftest.er1 >conftest.err
4477 cat conftest.err >&5
4478 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4479 (exit $ac_status); } && {
4480 test -z "$ac_c_werror_flag" ||
4481 test ! -s conftest.err
4482 } && test -s conftest.$ac_objext; then
4485 cat >conftest.$ac_ext <<_ACEOF
4488 cat confdefs.h >>conftest.$ac_ext
4489 cat >>conftest.$ac_ext <<_ACEOF
4490 /* end confdefs.h. */
4491 $ac_includes_default
4492 typedef char ac__type_sizeof_;
4496 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
4503 rm -f conftest.$ac_objext
4504 if { (ac_try="$ac_compile"
4506 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4507 *) ac_try_echo=$ac_try;;
4509 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4510 (eval "$ac_compile") 2>conftest.er1
4512 grep -v '^ *+' conftest.er1 >conftest.err
4514 cat conftest.err >&5
4515 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4516 (exit $ac_status); } && {
4517 test -z "$ac_c_werror_flag" ||
4518 test ! -s conftest.err
4519 } && test -s conftest.$ac_objext; then
4520 ac_lo=$ac_mid; break
4522 echo "$as_me: failed program was:" >&5
4523 sed 's/^/| /' conftest.$ac_ext >&5
4525 ac_hi=`expr '(' $ac_mid ')' - 1`
4526 if test $ac_mid -le $ac_hi; then
4530 ac_mid=`expr 2 '*' $ac_mid`
4533 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4536 echo "$as_me: failed program was:" >&5
4537 sed 's/^/| /' conftest.$ac_ext >&5
4542 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4545 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4546 # Binary search between lo and hi bounds.
4547 while test "x$ac_lo" != "x$ac_hi"; do
4548 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
4549 cat >conftest.$ac_ext <<_ACEOF
4552 cat confdefs.h >>conftest.$ac_ext
4553 cat >>conftest.$ac_ext <<_ACEOF
4554 /* end confdefs.h. */
4555 $ac_includes_default
4556 typedef char ac__type_sizeof_;
4560 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
4567 rm -f conftest.$ac_objext
4568 if { (ac_try="$ac_compile"
4570 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4571 *) ac_try_echo=$ac_try;;
4573 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4574 (eval "$ac_compile") 2>conftest.er1
4576 grep -v '^ *+' conftest.er1 >conftest.err
4578 cat conftest.err >&5
4579 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4580 (exit $ac_status); } && {
4581 test -z "$ac_c_werror_flag" ||
4582 test ! -s conftest.err
4583 } && test -s conftest.$ac_objext; then
4586 echo "$as_me: failed program was:" >&5
4587 sed 's/^/| /' conftest.$ac_ext >&5
4589 ac_lo=`expr '(' $ac_mid ')' + 1`
4592 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4595 ?*) ac_cv_sizeof_char=$ac_lo;;
4596 '') if test "$ac_cv_type_char" = yes; then
4597 { { echo "$as_me:$LINENO: error: cannot compute sizeof (char)
4598 See \`config.log' for more details." >&5
4599 echo "$as_me: error: cannot compute sizeof (char)
4600 See \`config.log' for more details." >&2;}
4601 { (exit 77); exit 77; }; }
4607 cat >conftest.$ac_ext <<_ACEOF
4610 cat confdefs.h >>conftest.$ac_ext
4611 cat >>conftest.$ac_ext <<_ACEOF
4612 /* end confdefs.h. */
4613 $ac_includes_default
4614 typedef char ac__type_sizeof_;
4615 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
4616 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
4623 FILE *f = fopen ("conftest.val", "w");
4626 if (((long int) (sizeof (ac__type_sizeof_))) < 0)
4628 long int i = longval ();
4629 if (i != ((long int) (sizeof (ac__type_sizeof_))))
4631 fprintf (f, "%ld\n", i);
4635 unsigned long int i = ulongval ();
4636 if (i != ((long int) (sizeof (ac__type_sizeof_))))
4638 fprintf (f, "%lu\n", i);
4640 return ferror (f) || fclose (f) != 0;
4646 rm -f conftest$ac_exeext
4647 if { (ac_try="$ac_link"
4649 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4650 *) ac_try_echo=$ac_try;;
4652 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4653 (eval "$ac_link") 2>&5
4655 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4656 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4657 { (case "(($ac_try" in
4658 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4659 *) ac_try_echo=$ac_try;;
4661 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4662 (eval "$ac_try") 2>&5
4664 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4665 (exit $ac_status); }; }; then
4666 ac_cv_sizeof_char=`cat conftest.val`
4668 echo "$as_me: program exited with status $ac_status" >&5
4669 echo "$as_me: failed program was:" >&5
4670 sed 's/^/| /' conftest.$ac_ext >&5
4673 if test "$ac_cv_type_char" = yes; then
4674 { { echo "$as_me:$LINENO: error: cannot compute sizeof (char)
4675 See \`config.log' for more details." >&5
4676 echo "$as_me: error: cannot compute sizeof (char)
4677 See \`config.log' for more details." >&2;}
4678 { (exit 77); exit 77; }; }
4683 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4687 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_char" >&5
4688 echo "${ECHO_T}$ac_cv_sizeof_char" >&6; }
4692 cat >>confdefs.h <<_ACEOF
4693 #define SIZEOF_CHAR $ac_cv_sizeof_char
4697 { echo "$as_me:$LINENO: checking for short" >&5
4698 echo $ECHO_N "checking for short... $ECHO_C" >&6; }
4699 if test "${ac_cv_type_short+set}" = set; then
4700 echo $ECHO_N "(cached) $ECHO_C" >&6
4702 cat >conftest.$ac_ext <<_ACEOF
4705 cat confdefs.h >>conftest.$ac_ext
4706 cat >>conftest.$ac_ext <<_ACEOF
4707 /* end confdefs.h. */
4708 $ac_includes_default
4709 typedef short ac__type_new_;
4713 if ((ac__type_new_ *) 0)
4715 if (sizeof (ac__type_new_))
4721 rm -f conftest.$ac_objext
4722 if { (ac_try="$ac_compile"
4724 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4725 *) ac_try_echo=$ac_try;;
4727 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4728 (eval "$ac_compile") 2>conftest.er1
4730 grep -v '^ *+' conftest.er1 >conftest.err
4732 cat conftest.err >&5
4733 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4734 (exit $ac_status); } && {
4735 test -z "$ac_c_werror_flag" ||
4736 test ! -s conftest.err
4737 } && test -s conftest.$ac_objext; then
4738 ac_cv_type_short=yes
4740 echo "$as_me: failed program was:" >&5
4741 sed 's/^/| /' conftest.$ac_ext >&5
4746 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4748 { echo "$as_me:$LINENO: result: $ac_cv_type_short" >&5
4749 echo "${ECHO_T}$ac_cv_type_short" >&6; }
4751 # The cast to long int works around a bug in the HP C Compiler
4752 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
4753 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
4754 # This bug is HP SR number 8606223364.
4755 { echo "$as_me:$LINENO: checking size of short" >&5
4756 echo $ECHO_N "checking size of short... $ECHO_C" >&6; }
4757 if test "${ac_cv_sizeof_short+set}" = set; then
4758 echo $ECHO_N "(cached) $ECHO_C" >&6
4760 if test "$cross_compiling" = yes; then
4761 # Depending upon the size, compute the lo and hi bounds.
4762 cat >conftest.$ac_ext <<_ACEOF
4765 cat confdefs.h >>conftest.$ac_ext
4766 cat >>conftest.$ac_ext <<_ACEOF
4767 /* end confdefs.h. */
4768 $ac_includes_default
4769 typedef short ac__type_sizeof_;
4773 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
4780 rm -f conftest.$ac_objext
4781 if { (ac_try="$ac_compile"
4783 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4784 *) ac_try_echo=$ac_try;;
4786 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4787 (eval "$ac_compile") 2>conftest.er1
4789 grep -v '^ *+' conftest.er1 >conftest.err
4791 cat conftest.err >&5
4792 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4793 (exit $ac_status); } && {
4794 test -z "$ac_c_werror_flag" ||
4795 test ! -s conftest.err
4796 } && test -s conftest.$ac_objext; then
4799 cat >conftest.$ac_ext <<_ACEOF
4802 cat confdefs.h >>conftest.$ac_ext
4803 cat >>conftest.$ac_ext <<_ACEOF
4804 /* end confdefs.h. */
4805 $ac_includes_default
4806 typedef short ac__type_sizeof_;
4810 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
4817 rm -f conftest.$ac_objext
4818 if { (ac_try="$ac_compile"
4820 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4821 *) ac_try_echo=$ac_try;;
4823 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4824 (eval "$ac_compile") 2>conftest.er1
4826 grep -v '^ *+' conftest.er1 >conftest.err
4828 cat conftest.err >&5
4829 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4830 (exit $ac_status); } && {
4831 test -z "$ac_c_werror_flag" ||
4832 test ! -s conftest.err
4833 } && test -s conftest.$ac_objext; then
4834 ac_hi=$ac_mid; break
4836 echo "$as_me: failed program was:" >&5
4837 sed 's/^/| /' conftest.$ac_ext >&5
4839 ac_lo=`expr $ac_mid + 1`
4840 if test $ac_lo -le $ac_mid; then
4844 ac_mid=`expr 2 '*' $ac_mid + 1`
4847 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4850 echo "$as_me: failed program was:" >&5
4851 sed 's/^/| /' conftest.$ac_ext >&5
4853 cat >conftest.$ac_ext <<_ACEOF
4856 cat confdefs.h >>conftest.$ac_ext
4857 cat >>conftest.$ac_ext <<_ACEOF
4858 /* end confdefs.h. */
4859 $ac_includes_default
4860 typedef short ac__type_sizeof_;
4864 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
4871 rm -f conftest.$ac_objext
4872 if { (ac_try="$ac_compile"
4874 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4875 *) ac_try_echo=$ac_try;;
4877 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4878 (eval "$ac_compile") 2>conftest.er1
4880 grep -v '^ *+' conftest.er1 >conftest.err
4882 cat conftest.err >&5
4883 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4884 (exit $ac_status); } && {
4885 test -z "$ac_c_werror_flag" ||
4886 test ! -s conftest.err
4887 } && test -s conftest.$ac_objext; then
4890 cat >conftest.$ac_ext <<_ACEOF
4893 cat confdefs.h >>conftest.$ac_ext
4894 cat >>conftest.$ac_ext <<_ACEOF
4895 /* end confdefs.h. */
4896 $ac_includes_default
4897 typedef short ac__type_sizeof_;
4901 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
4908 rm -f conftest.$ac_objext
4909 if { (ac_try="$ac_compile"
4911 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4912 *) ac_try_echo=$ac_try;;
4914 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4915 (eval "$ac_compile") 2>conftest.er1
4917 grep -v '^ *+' conftest.er1 >conftest.err
4919 cat conftest.err >&5
4920 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4921 (exit $ac_status); } && {
4922 test -z "$ac_c_werror_flag" ||
4923 test ! -s conftest.err
4924 } && test -s conftest.$ac_objext; then
4925 ac_lo=$ac_mid; break
4927 echo "$as_me: failed program was:" >&5
4928 sed 's/^/| /' conftest.$ac_ext >&5
4930 ac_hi=`expr '(' $ac_mid ')' - 1`
4931 if test $ac_mid -le $ac_hi; then
4935 ac_mid=`expr 2 '*' $ac_mid`
4938 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4941 echo "$as_me: failed program was:" >&5
4942 sed 's/^/| /' conftest.$ac_ext >&5
4947 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4950 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4951 # Binary search between lo and hi bounds.
4952 while test "x$ac_lo" != "x$ac_hi"; do
4953 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
4954 cat >conftest.$ac_ext <<_ACEOF
4957 cat confdefs.h >>conftest.$ac_ext
4958 cat >>conftest.$ac_ext <<_ACEOF
4959 /* end confdefs.h. */
4960 $ac_includes_default
4961 typedef short ac__type_sizeof_;
4965 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
4972 rm -f conftest.$ac_objext
4973 if { (ac_try="$ac_compile"
4975 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4976 *) ac_try_echo=$ac_try;;
4978 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4979 (eval "$ac_compile") 2>conftest.er1
4981 grep -v '^ *+' conftest.er1 >conftest.err
4983 cat conftest.err >&5
4984 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4985 (exit $ac_status); } && {
4986 test -z "$ac_c_werror_flag" ||
4987 test ! -s conftest.err
4988 } && test -s conftest.$ac_objext; then
4991 echo "$as_me: failed program was:" >&5
4992 sed 's/^/| /' conftest.$ac_ext >&5
4994 ac_lo=`expr '(' $ac_mid ')' + 1`
4997 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5000 ?*) ac_cv_sizeof_short=$ac_lo;;
5001 '') if test "$ac_cv_type_short" = yes; then
5002 { { echo "$as_me:$LINENO: error: cannot compute sizeof (short)
5003 See \`config.log' for more details." >&5
5004 echo "$as_me: error: cannot compute sizeof (short)
5005 See \`config.log' for more details." >&2;}
5006 { (exit 77); exit 77; }; }
5008 ac_cv_sizeof_short=0
5012 cat >conftest.$ac_ext <<_ACEOF
5015 cat confdefs.h >>conftest.$ac_ext
5016 cat >>conftest.$ac_ext <<_ACEOF
5017 /* end confdefs.h. */
5018 $ac_includes_default
5019 typedef short ac__type_sizeof_;
5020 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
5021 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
5028 FILE *f = fopen ("conftest.val", "w");
5031 if (((long int) (sizeof (ac__type_sizeof_))) < 0)
5033 long int i = longval ();
5034 if (i != ((long int) (sizeof (ac__type_sizeof_))))
5036 fprintf (f, "%ld\n", i);
5040 unsigned long int i = ulongval ();
5041 if (i != ((long int) (sizeof (ac__type_sizeof_))))
5043 fprintf (f, "%lu\n", i);
5045 return ferror (f) || fclose (f) != 0;
5051 rm -f conftest$ac_exeext
5052 if { (ac_try="$ac_link"
5054 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5055 *) ac_try_echo=$ac_try;;
5057 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5058 (eval "$ac_link") 2>&5
5060 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5061 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5062 { (case "(($ac_try" in
5063 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5064 *) ac_try_echo=$ac_try;;
5066 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5067 (eval "$ac_try") 2>&5
5069 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5070 (exit $ac_status); }; }; then
5071 ac_cv_sizeof_short=`cat conftest.val`
5073 echo "$as_me: program exited with status $ac_status" >&5
5074 echo "$as_me: failed program was:" >&5
5075 sed 's/^/| /' conftest.$ac_ext >&5
5078 if test "$ac_cv_type_short" = yes; then
5079 { { echo "$as_me:$LINENO: error: cannot compute sizeof (short)
5080 See \`config.log' for more details." >&5
5081 echo "$as_me: error: cannot compute sizeof (short)
5082 See \`config.log' for more details." >&2;}
5083 { (exit 77); exit 77; }; }
5085 ac_cv_sizeof_short=0
5088 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5092 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_short" >&5
5093 echo "${ECHO_T}$ac_cv_sizeof_short" >&6; }
5097 cat >>confdefs.h <<_ACEOF
5098 #define SIZEOF_SHORT $ac_cv_sizeof_short
5102 { echo "$as_me:$LINENO: checking for int" >&5
5103 echo $ECHO_N "checking for int... $ECHO_C" >&6; }
5104 if test "${ac_cv_type_int+set}" = set; then
5105 echo $ECHO_N "(cached) $ECHO_C" >&6
5107 cat >conftest.$ac_ext <<_ACEOF
5110 cat confdefs.h >>conftest.$ac_ext
5111 cat >>conftest.$ac_ext <<_ACEOF
5112 /* end confdefs.h. */
5113 $ac_includes_default
5114 typedef int ac__type_new_;
5118 if ((ac__type_new_ *) 0)
5120 if (sizeof (ac__type_new_))
5126 rm -f conftest.$ac_objext
5127 if { (ac_try="$ac_compile"
5129 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5130 *) ac_try_echo=$ac_try;;
5132 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5133 (eval "$ac_compile") 2>conftest.er1
5135 grep -v '^ *+' conftest.er1 >conftest.err
5137 cat conftest.err >&5
5138 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5139 (exit $ac_status); } && {
5140 test -z "$ac_c_werror_flag" ||
5141 test ! -s conftest.err
5142 } && test -s conftest.$ac_objext; then
5145 echo "$as_me: failed program was:" >&5
5146 sed 's/^/| /' conftest.$ac_ext >&5
5151 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5153 { echo "$as_me:$LINENO: result: $ac_cv_type_int" >&5
5154 echo "${ECHO_T}$ac_cv_type_int" >&6; }
5156 # The cast to long int works around a bug in the HP C Compiler
5157 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
5158 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
5159 # This bug is HP SR number 8606223364.
5160 { echo "$as_me:$LINENO: checking size of int" >&5
5161 echo $ECHO_N "checking size of int... $ECHO_C" >&6; }
5162 if test "${ac_cv_sizeof_int+set}" = set; then
5163 echo $ECHO_N "(cached) $ECHO_C" >&6
5165 if test "$cross_compiling" = yes; then
5166 # Depending upon the size, compute the lo and hi bounds.
5167 cat >conftest.$ac_ext <<_ACEOF
5170 cat confdefs.h >>conftest.$ac_ext
5171 cat >>conftest.$ac_ext <<_ACEOF
5172 /* end confdefs.h. */
5173 $ac_includes_default
5174 typedef int ac__type_sizeof_;
5178 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
5185 rm -f conftest.$ac_objext
5186 if { (ac_try="$ac_compile"
5188 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5189 *) ac_try_echo=$ac_try;;
5191 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5192 (eval "$ac_compile") 2>conftest.er1
5194 grep -v '^ *+' conftest.er1 >conftest.err
5196 cat conftest.err >&5
5197 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5198 (exit $ac_status); } && {
5199 test -z "$ac_c_werror_flag" ||
5200 test ! -s conftest.err
5201 } && test -s conftest.$ac_objext; then
5204 cat >conftest.$ac_ext <<_ACEOF
5207 cat confdefs.h >>conftest.$ac_ext
5208 cat >>conftest.$ac_ext <<_ACEOF
5209 /* end confdefs.h. */
5210 $ac_includes_default
5211 typedef int ac__type_sizeof_;
5215 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
5222 rm -f conftest.$ac_objext
5223 if { (ac_try="$ac_compile"
5225 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5226 *) ac_try_echo=$ac_try;;
5228 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5229 (eval "$ac_compile") 2>conftest.er1
5231 grep -v '^ *+' conftest.er1 >conftest.err
5233 cat conftest.err >&5
5234 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5235 (exit $ac_status); } && {
5236 test -z "$ac_c_werror_flag" ||
5237 test ! -s conftest.err
5238 } && test -s conftest.$ac_objext; then
5239 ac_hi=$ac_mid; break
5241 echo "$as_me: failed program was:" >&5
5242 sed 's/^/| /' conftest.$ac_ext >&5
5244 ac_lo=`expr $ac_mid + 1`
5245 if test $ac_lo -le $ac_mid; then
5249 ac_mid=`expr 2 '*' $ac_mid + 1`
5252 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5255 echo "$as_me: failed program was:" >&5
5256 sed 's/^/| /' conftest.$ac_ext >&5
5258 cat >conftest.$ac_ext <<_ACEOF
5261 cat confdefs.h >>conftest.$ac_ext
5262 cat >>conftest.$ac_ext <<_ACEOF
5263 /* end confdefs.h. */
5264 $ac_includes_default
5265 typedef int ac__type_sizeof_;
5269 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
5276 rm -f conftest.$ac_objext
5277 if { (ac_try="$ac_compile"
5279 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5280 *) ac_try_echo=$ac_try;;
5282 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5283 (eval "$ac_compile") 2>conftest.er1
5285 grep -v '^ *+' conftest.er1 >conftest.err
5287 cat conftest.err >&5
5288 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5289 (exit $ac_status); } && {
5290 test -z "$ac_c_werror_flag" ||
5291 test ! -s conftest.err
5292 } && test -s conftest.$ac_objext; then
5295 cat >conftest.$ac_ext <<_ACEOF
5298 cat confdefs.h >>conftest.$ac_ext
5299 cat >>conftest.$ac_ext <<_ACEOF
5300 /* end confdefs.h. */
5301 $ac_includes_default
5302 typedef int ac__type_sizeof_;
5306 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
5313 rm -f conftest.$ac_objext
5314 if { (ac_try="$ac_compile"
5316 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5317 *) ac_try_echo=$ac_try;;
5319 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5320 (eval "$ac_compile") 2>conftest.er1
5322 grep -v '^ *+' conftest.er1 >conftest.err
5324 cat conftest.err >&5
5325 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5326 (exit $ac_status); } && {
5327 test -z "$ac_c_werror_flag" ||
5328 test ! -s conftest.err
5329 } && test -s conftest.$ac_objext; then
5330 ac_lo=$ac_mid; break
5332 echo "$as_me: failed program was:" >&5
5333 sed 's/^/| /' conftest.$ac_ext >&5
5335 ac_hi=`expr '(' $ac_mid ')' - 1`
5336 if test $ac_mid -le $ac_hi; then
5340 ac_mid=`expr 2 '*' $ac_mid`
5343 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5346 echo "$as_me: failed program was:" >&5
5347 sed 's/^/| /' conftest.$ac_ext >&5
5352 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5355 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5356 # Binary search between lo and hi bounds.
5357 while test "x$ac_lo" != "x$ac_hi"; do
5358 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
5359 cat >conftest.$ac_ext <<_ACEOF
5362 cat confdefs.h >>conftest.$ac_ext
5363 cat >>conftest.$ac_ext <<_ACEOF
5364 /* end confdefs.h. */
5365 $ac_includes_default
5366 typedef int ac__type_sizeof_;
5370 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
5377 rm -f conftest.$ac_objext
5378 if { (ac_try="$ac_compile"
5380 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5381 *) ac_try_echo=$ac_try;;
5383 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5384 (eval "$ac_compile") 2>conftest.er1
5386 grep -v '^ *+' conftest.er1 >conftest.err
5388 cat conftest.err >&5
5389 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5390 (exit $ac_status); } && {
5391 test -z "$ac_c_werror_flag" ||
5392 test ! -s conftest.err
5393 } && test -s conftest.$ac_objext; then
5396 echo "$as_me: failed program was:" >&5
5397 sed 's/^/| /' conftest.$ac_ext >&5
5399 ac_lo=`expr '(' $ac_mid ')' + 1`
5402 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5405 ?*) ac_cv_sizeof_int=$ac_lo;;
5406 '') if test "$ac_cv_type_int" = yes; then
5407 { { echo "$as_me:$LINENO: error: cannot compute sizeof (int)
5408 See \`config.log' for more details." >&5
5409 echo "$as_me: error: cannot compute sizeof (int)
5410 See \`config.log' for more details." >&2;}
5411 { (exit 77); exit 77; }; }
5417 cat >conftest.$ac_ext <<_ACEOF
5420 cat confdefs.h >>conftest.$ac_ext
5421 cat >>conftest.$ac_ext <<_ACEOF
5422 /* end confdefs.h. */
5423 $ac_includes_default
5424 typedef int ac__type_sizeof_;
5425 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
5426 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
5433 FILE *f = fopen ("conftest.val", "w");
5436 if (((long int) (sizeof (ac__type_sizeof_))) < 0)
5438 long int i = longval ();
5439 if (i != ((long int) (sizeof (ac__type_sizeof_))))
5441 fprintf (f, "%ld\n", i);
5445 unsigned long int i = ulongval ();
5446 if (i != ((long int) (sizeof (ac__type_sizeof_))))
5448 fprintf (f, "%lu\n", i);
5450 return ferror (f) || fclose (f) != 0;
5456 rm -f conftest$ac_exeext
5457 if { (ac_try="$ac_link"
5459 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5460 *) ac_try_echo=$ac_try;;
5462 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5463 (eval "$ac_link") 2>&5
5465 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5466 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5467 { (case "(($ac_try" in
5468 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5469 *) ac_try_echo=$ac_try;;
5471 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5472 (eval "$ac_try") 2>&5
5474 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5475 (exit $ac_status); }; }; then
5476 ac_cv_sizeof_int=`cat conftest.val`
5478 echo "$as_me: program exited with status $ac_status" >&5
5479 echo "$as_me: failed program was:" >&5
5480 sed 's/^/| /' conftest.$ac_ext >&5
5483 if test "$ac_cv_type_int" = yes; then
5484 { { echo "$as_me:$LINENO: error: cannot compute sizeof (int)
5485 See \`config.log' for more details." >&5
5486 echo "$as_me: error: cannot compute sizeof (int)
5487 See \`config.log' for more details." >&2;}
5488 { (exit 77); exit 77; }; }
5493 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5497 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_int" >&5
5498 echo "${ECHO_T}$ac_cv_sizeof_int" >&6; }
5502 cat >>confdefs.h <<_ACEOF
5503 #define SIZEOF_INT $ac_cv_sizeof_int
5507 { echo "$as_me:$LINENO: checking for long" >&5
5508 echo $ECHO_N "checking for long... $ECHO_C" >&6; }
5509 if test "${ac_cv_type_long+set}" = set; then
5510 echo $ECHO_N "(cached) $ECHO_C" >&6
5512 cat >conftest.$ac_ext <<_ACEOF
5515 cat confdefs.h >>conftest.$ac_ext
5516 cat >>conftest.$ac_ext <<_ACEOF
5517 /* end confdefs.h. */
5518 $ac_includes_default
5519 typedef long ac__type_new_;
5523 if ((ac__type_new_ *) 0)
5525 if (sizeof (ac__type_new_))
5531 rm -f conftest.$ac_objext
5532 if { (ac_try="$ac_compile"
5534 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5535 *) ac_try_echo=$ac_try;;
5537 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5538 (eval "$ac_compile") 2>conftest.er1
5540 grep -v '^ *+' conftest.er1 >conftest.err
5542 cat conftest.err >&5
5543 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5544 (exit $ac_status); } && {
5545 test -z "$ac_c_werror_flag" ||
5546 test ! -s conftest.err
5547 } && test -s conftest.$ac_objext; then
5550 echo "$as_me: failed program was:" >&5
5551 sed 's/^/| /' conftest.$ac_ext >&5
5556 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5558 { echo "$as_me:$LINENO: result: $ac_cv_type_long" >&5
5559 echo "${ECHO_T}$ac_cv_type_long" >&6; }
5561 # The cast to long int works around a bug in the HP C Compiler
5562 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
5563 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
5564 # This bug is HP SR number 8606223364.
5565 { echo "$as_me:$LINENO: checking size of long" >&5
5566 echo $ECHO_N "checking size of long... $ECHO_C" >&6; }
5567 if test "${ac_cv_sizeof_long+set}" = set; then
5568 echo $ECHO_N "(cached) $ECHO_C" >&6
5570 if test "$cross_compiling" = yes; then
5571 # Depending upon the size, compute the lo and hi bounds.
5572 cat >conftest.$ac_ext <<_ACEOF
5575 cat confdefs.h >>conftest.$ac_ext
5576 cat >>conftest.$ac_ext <<_ACEOF
5577 /* end confdefs.h. */
5578 $ac_includes_default
5579 typedef long ac__type_sizeof_;
5583 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
5590 rm -f conftest.$ac_objext
5591 if { (ac_try="$ac_compile"
5593 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5594 *) ac_try_echo=$ac_try;;
5596 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5597 (eval "$ac_compile") 2>conftest.er1
5599 grep -v '^ *+' conftest.er1 >conftest.err
5601 cat conftest.err >&5
5602 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5603 (exit $ac_status); } && {
5604 test -z "$ac_c_werror_flag" ||
5605 test ! -s conftest.err
5606 } && test -s conftest.$ac_objext; then
5609 cat >conftest.$ac_ext <<_ACEOF
5612 cat confdefs.h >>conftest.$ac_ext
5613 cat >>conftest.$ac_ext <<_ACEOF
5614 /* end confdefs.h. */
5615 $ac_includes_default
5616 typedef long ac__type_sizeof_;
5620 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
5627 rm -f conftest.$ac_objext
5628 if { (ac_try="$ac_compile"
5630 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5631 *) ac_try_echo=$ac_try;;
5633 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5634 (eval "$ac_compile") 2>conftest.er1
5636 grep -v '^ *+' conftest.er1 >conftest.err
5638 cat conftest.err >&5
5639 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5640 (exit $ac_status); } && {
5641 test -z "$ac_c_werror_flag" ||
5642 test ! -s conftest.err
5643 } && test -s conftest.$ac_objext; then
5644 ac_hi=$ac_mid; break
5646 echo "$as_me: failed program was:" >&5
5647 sed 's/^/| /' conftest.$ac_ext >&5
5649 ac_lo=`expr $ac_mid + 1`
5650 if test $ac_lo -le $ac_mid; then
5654 ac_mid=`expr 2 '*' $ac_mid + 1`
5657 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5660 echo "$as_me: failed program was:" >&5
5661 sed 's/^/| /' conftest.$ac_ext >&5
5663 cat >conftest.$ac_ext <<_ACEOF
5666 cat confdefs.h >>conftest.$ac_ext
5667 cat >>conftest.$ac_ext <<_ACEOF
5668 /* end confdefs.h. */
5669 $ac_includes_default
5670 typedef long ac__type_sizeof_;
5674 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
5681 rm -f conftest.$ac_objext
5682 if { (ac_try="$ac_compile"
5684 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5685 *) ac_try_echo=$ac_try;;
5687 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5688 (eval "$ac_compile") 2>conftest.er1
5690 grep -v '^ *+' conftest.er1 >conftest.err
5692 cat conftest.err >&5
5693 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5694 (exit $ac_status); } && {
5695 test -z "$ac_c_werror_flag" ||
5696 test ! -s conftest.err
5697 } && test -s conftest.$ac_objext; then
5700 cat >conftest.$ac_ext <<_ACEOF
5703 cat confdefs.h >>conftest.$ac_ext
5704 cat >>conftest.$ac_ext <<_ACEOF
5705 /* end confdefs.h. */
5706 $ac_includes_default
5707 typedef long ac__type_sizeof_;
5711 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
5718 rm -f conftest.$ac_objext
5719 if { (ac_try="$ac_compile"
5721 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5722 *) ac_try_echo=$ac_try;;
5724 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5725 (eval "$ac_compile") 2>conftest.er1
5727 grep -v '^ *+' conftest.er1 >conftest.err
5729 cat conftest.err >&5
5730 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5731 (exit $ac_status); } && {
5732 test -z "$ac_c_werror_flag" ||
5733 test ! -s conftest.err
5734 } && test -s conftest.$ac_objext; then
5735 ac_lo=$ac_mid; break
5737 echo "$as_me: failed program was:" >&5
5738 sed 's/^/| /' conftest.$ac_ext >&5
5740 ac_hi=`expr '(' $ac_mid ')' - 1`
5741 if test $ac_mid -le $ac_hi; then
5745 ac_mid=`expr 2 '*' $ac_mid`
5748 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5751 echo "$as_me: failed program was:" >&5
5752 sed 's/^/| /' conftest.$ac_ext >&5
5757 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5760 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5761 # Binary search between lo and hi bounds.
5762 while test "x$ac_lo" != "x$ac_hi"; do
5763 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
5764 cat >conftest.$ac_ext <<_ACEOF
5767 cat confdefs.h >>conftest.$ac_ext
5768 cat >>conftest.$ac_ext <<_ACEOF
5769 /* end confdefs.h. */
5770 $ac_includes_default
5771 typedef long ac__type_sizeof_;
5775 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
5782 rm -f conftest.$ac_objext
5783 if { (ac_try="$ac_compile"
5785 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5786 *) ac_try_echo=$ac_try;;
5788 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5789 (eval "$ac_compile") 2>conftest.er1
5791 grep -v '^ *+' conftest.er1 >conftest.err
5793 cat conftest.err >&5
5794 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5795 (exit $ac_status); } && {
5796 test -z "$ac_c_werror_flag" ||
5797 test ! -s conftest.err
5798 } && test -s conftest.$ac_objext; then
5801 echo "$as_me: failed program was:" >&5
5802 sed 's/^/| /' conftest.$ac_ext >&5
5804 ac_lo=`expr '(' $ac_mid ')' + 1`
5807 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5810 ?*) ac_cv_sizeof_long=$ac_lo;;
5811 '') if test "$ac_cv_type_long" = yes; then
5812 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long)
5813 See \`config.log' for more details." >&5
5814 echo "$as_me: error: cannot compute sizeof (long)
5815 See \`config.log' for more details." >&2;}
5816 { (exit 77); exit 77; }; }
5822 cat >conftest.$ac_ext <<_ACEOF
5825 cat confdefs.h >>conftest.$ac_ext
5826 cat >>conftest.$ac_ext <<_ACEOF
5827 /* end confdefs.h. */
5828 $ac_includes_default
5829 typedef long ac__type_sizeof_;
5830 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
5831 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
5838 FILE *f = fopen ("conftest.val", "w");
5841 if (((long int) (sizeof (ac__type_sizeof_))) < 0)
5843 long int i = longval ();
5844 if (i != ((long int) (sizeof (ac__type_sizeof_))))
5846 fprintf (f, "%ld\n", i);
5850 unsigned long int i = ulongval ();
5851 if (i != ((long int) (sizeof (ac__type_sizeof_))))
5853 fprintf (f, "%lu\n", i);
5855 return ferror (f) || fclose (f) != 0;
5861 rm -f conftest$ac_exeext
5862 if { (ac_try="$ac_link"
5864 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5865 *) ac_try_echo=$ac_try;;
5867 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5868 (eval "$ac_link") 2>&5
5870 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5871 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5872 { (case "(($ac_try" in
5873 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5874 *) ac_try_echo=$ac_try;;
5876 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5877 (eval "$ac_try") 2>&5
5879 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5880 (exit $ac_status); }; }; then
5881 ac_cv_sizeof_long=`cat conftest.val`
5883 echo "$as_me: program exited with status $ac_status" >&5
5884 echo "$as_me: failed program was:" >&5
5885 sed 's/^/| /' conftest.$ac_ext >&5
5888 if test "$ac_cv_type_long" = yes; then
5889 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long)
5890 See \`config.log' for more details." >&5
5891 echo "$as_me: error: cannot compute sizeof (long)
5892 See \`config.log' for more details." >&2;}
5893 { (exit 77); exit 77; }; }
5898 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5902 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_long" >&5
5903 echo "${ECHO_T}$ac_cv_sizeof_long" >&6; }
5907 cat >>confdefs.h <<_ACEOF
5908 #define SIZEOF_LONG $ac_cv_sizeof_long
5913 { echo "$as_me:$LINENO: checking whether char is unsigned" >&5
5914 echo $ECHO_N "checking whether char is unsigned... $ECHO_C" >&6; }
5915 if test "${ac_cv_c_char_unsigned+set}" = set; then
5916 echo $ECHO_N "(cached) $ECHO_C" >&6
5918 cat >conftest.$ac_ext <<_ACEOF
5921 cat confdefs.h >>conftest.$ac_ext
5922 cat >>conftest.$ac_ext <<_ACEOF
5923 /* end confdefs.h. */
5924 $ac_includes_default
5928 static int test_array [1 - 2 * !(((char) -1) < 0)];
5935 rm -f conftest.$ac_objext
5936 if { (ac_try="$ac_compile"
5938 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5939 *) ac_try_echo=$ac_try;;
5941 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5942 (eval "$ac_compile") 2>conftest.er1
5944 grep -v '^ *+' conftest.er1 >conftest.err
5946 cat conftest.err >&5
5947 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5948 (exit $ac_status); } && {
5949 test -z "$ac_c_werror_flag" ||
5950 test ! -s conftest.err
5951 } && test -s conftest.$ac_objext; then
5952 ac_cv_c_char_unsigned=no
5954 echo "$as_me: failed program was:" >&5
5955 sed 's/^/| /' conftest.$ac_ext >&5
5957 ac_cv_c_char_unsigned=yes
5960 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5962 { echo "$as_me:$LINENO: result: $ac_cv_c_char_unsigned" >&5
5963 echo "${ECHO_T}$ac_cv_c_char_unsigned" >&6; }
5964 if test $ac_cv_c_char_unsigned = yes && test "$GCC" != yes; then
5965 cat >>confdefs.h <<\_ACEOF
5966 #define __CHAR_UNSIGNED__ 1
5974 if expr "$ac_cv_sizeof_char" '>=' "$1" >/dev/null; then
5978 if expr "$ac_cv_sizeof_short" '>=' "$1" >/dev/null; then
5982 if expr "$ac_cv_sizeof_int" '>=' "$1" >/dev/null; then
5986 if expr "$ac_cv_sizeof_long" '>=' "$1" >/dev/null; then
5993 { echo "$as_me:$LINENO: checking type name for byte" >&5
5994 echo $ECHO_N "checking type name for byte... $ECHO_C" >&6; }
5995 TYPE_CHAR=`type_name 1`
5996 if test "$ac_cv_c_char_unsigned" = "yes"; then
5997 TYPE_BYTE="signed $TYPE_CHAR"
5999 TYPE_BYTE=$TYPE_CHAR
6001 { echo "$as_me:$LINENO: result: $TYPE_BYTE" >&5
6002 echo "${ECHO_T}$TYPE_BYTE" >&6; }
6003 { echo "$as_me:$LINENO: checking type name for word" >&5
6004 echo $ECHO_N "checking type name for word... $ECHO_C" >&6; }
6005 TYPE_WORD=`type_name 2`
6006 { echo "$as_me:$LINENO: result: $TYPE_WORD" >&5
6007 echo "${ECHO_T}$TYPE_WORD" >&6; }
6008 { echo "$as_me:$LINENO: checking type name for dword" >&5
6009 echo $ECHO_N "checking type name for dword... $ECHO_C" >&6; }
6010 TYPE_DWORD=`type_name 4`
6011 { echo "$as_me:$LINENO: result: $TYPE_DWORD" >&5
6012 echo "${ECHO_T}$TYPE_DWORD" >&6; }
6014 cat >>confdefs.h <<_ACEOF
6015 #define TYPE_BYTE $TYPE_BYTE
6018 cat >>confdefs.h <<_ACEOF
6019 #define TYPE_WORD $TYPE_WORD
6022 cat >>confdefs.h <<_ACEOF
6023 #define TYPE_DWORD $TYPE_DWORD
6027 cat >>confdefs.h <<_ACEOF
6028 #define TYPE_UBYTE unsigned $TYPE_CHAR
6031 cat >>confdefs.h <<_ACEOF
6032 #define TYPE_UWORD unsigned $TYPE_WORD
6035 cat >>confdefs.h <<_ACEOF
6036 #define TYPE_UDWORD unsigned $TYPE_DWORD
6041 # SDCC_BUILD_BIGENDIAN ([ACTION-IF-TRUE], [ACTION-IF-FALSE], [ACTION-IF-UNKNOWN])
6042 # -------------------------------------------------------------------------
6043 # SDCC_BUILD_BIGENDIAN
6045 { echo "$as_me:$LINENO: checking whether build machine byte ordering is bigendian" >&5
6046 echo $ECHO_N "checking whether build machine byte ordering is bigendian... $ECHO_C" >&6; }
6047 if test "${sdcc_cv_build_bigendian+set}" = set; then
6048 echo $ECHO_N "(cached) $ECHO_C" >&6
6050 # See if sys/param.h defines the BYTE_ORDER macro.
6051 cat >conftest.$ac_ext <<_ACEOF
6054 cat confdefs.h >>conftest.$ac_ext
6055 cat >>conftest.$ac_ext <<_ACEOF
6056 /* end confdefs.h. */
6057 #include <sys/types.h>
6058 #include <sys/param.h>
6063 #if ! (defined BYTE_ORDER && defined BIG_ENDIAN && defined LITTLE_ENDIAN \
6064 && BYTE_ORDER && BIG_ENDIAN && LITTLE_ENDIAN)
6072 rm -f conftest.$ac_objext
6073 if { (ac_try="$ac_compile"
6075 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6076 *) ac_try_echo=$ac_try;;
6078 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6079 (eval "$ac_compile") 2>conftest.er1
6081 grep -v '^ *+' conftest.er1 >conftest.err
6083 cat conftest.err >&5
6084 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6085 (exit $ac_status); } && {
6086 test -z "$ac_c_werror_flag" ||
6087 test ! -s conftest.err
6088 } && test -s conftest.$ac_objext; then
6089 # It does; now see whether it defined to BIG_ENDIAN or not.
6090 cat >conftest.$ac_ext <<_ACEOF
6093 cat confdefs.h >>conftest.$ac_ext
6094 cat >>conftest.$ac_ext <<_ACEOF
6095 /* end confdefs.h. */
6096 #include <sys/types.h>
6097 #include <sys/param.h>
6102 #if BYTE_ORDER != BIG_ENDIAN
6110 rm -f conftest.$ac_objext
6111 if { (ac_try="$ac_compile"
6113 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6114 *) ac_try_echo=$ac_try;;
6116 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6117 (eval "$ac_compile") 2>conftest.er1
6119 grep -v '^ *+' conftest.er1 >conftest.err
6121 cat conftest.err >&5
6122 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6123 (exit $ac_status); } && {
6124 test -z "$ac_c_werror_flag" ||
6125 test ! -s conftest.err
6126 } && test -s conftest.$ac_objext; then
6127 sdcc_cv_build_bigendian=yes
6129 echo "$as_me: failed program was:" >&5
6130 sed 's/^/| /' conftest.$ac_ext >&5
6132 sdcc_cv_build_bigendian=no
6135 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6137 echo "$as_me: failed program was:" >&5
6138 sed 's/^/| /' conftest.$ac_ext >&5
6140 # It does not; compile a test program.
6141 if test "$cross_compiling" = yes; then
6142 # try to guess the endianness by grepping values into an object file
6143 sdcc_cv_build_bigendian=unknown
6144 cat >conftest.$ac_ext <<_ACEOF
6147 cat confdefs.h >>conftest.$ac_ext
6148 cat >>conftest.$ac_ext <<_ACEOF
6149 /* end confdefs.h. */
6150 short int ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
6151 short int ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
6152 void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; }
6153 short int ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
6154 short int ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
6155 void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; }
6159 _ascii (); _ebcdic ();
6164 rm -f conftest.$ac_objext
6165 if { (ac_try="$ac_compile"
6167 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6168 *) ac_try_echo=$ac_try;;
6170 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6171 (eval "$ac_compile") 2>conftest.er1
6173 grep -v '^ *+' conftest.er1 >conftest.err
6175 cat conftest.err >&5
6176 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6177 (exit $ac_status); } && {
6178 test -z "$ac_c_werror_flag" ||
6179 test ! -s conftest.err
6180 } && test -s conftest.$ac_objext; then
6181 if grep BIGenDianSyS conftest.$ac_objext >/dev/null ; then
6182 sdcc_cv_build_bigendian=yes
6184 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
6185 if test "$sdcc_cv_build_bigendian" = unknown; then
6186 sdcc_cv_build_bigendian=no
6188 # finding both strings is unlikely to happen, but who knows?
6189 sdcc_cv_build_bigendian=unknown
6193 echo "$as_me: failed program was:" >&5
6194 sed 's/^/| /' conftest.$ac_ext >&5
6199 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6201 cat >conftest.$ac_ext <<_ACEOF
6204 cat confdefs.h >>conftest.$ac_ext
6205 cat >>conftest.$ac_ext <<_ACEOF
6206 /* end confdefs.h. */
6207 $ac_includes_default
6212 /* Are we little or big endian? From Harbison&Steele. */
6216 char c[sizeof (long int)];
6219 return u.c[sizeof (long int) - 1] == 1;
6225 rm -f conftest$ac_exeext
6226 if { (ac_try="$ac_link"
6228 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6229 *) ac_try_echo=$ac_try;;
6231 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6232 (eval "$ac_link") 2>&5
6234 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6235 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6236 { (case "(($ac_try" in
6237 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6238 *) ac_try_echo=$ac_try;;
6240 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6241 (eval "$ac_try") 2>&5
6243 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6244 (exit $ac_status); }; }; then
6245 sdcc_cv_build_bigendian=no
6247 echo "$as_me: program exited with status $ac_status" >&5
6248 echo "$as_me: failed program was:" >&5
6249 sed 's/^/| /' conftest.$ac_ext >&5
6252 sdcc_cv_build_bigendian=yes
6254 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6260 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6262 { echo "$as_me:$LINENO: result: $sdcc_cv_build_bigendian" >&5
6263 echo "${ECHO_T}$sdcc_cv_build_bigendian" >&6; }
6264 case $sdcc_cv_build_bigendian in
6267 cat >>confdefs.h <<\_ACEOF
6268 #define BUILD_WORDS_BIGENDIAN 1
6274 { { echo "$as_me:$LINENO: error: unknown endianness
6275 presetting sdcc_cv_build_bigendian=no (or yes) will help" >&5
6276 echo "$as_me: error: unknown endianness
6277 presetting sdcc_cv_build_bigendian=no (or yes) will help" >&2;}
6278 { (exit 1); exit 1; }; } ;;
6282 # Set standard installation paths
6283 # ===========================================================================
6285 # In the Makefiles we need paths with '/' as directory separator, even if
6286 # crosscompiling for Win32.
6287 # And we want to preserve the macros (e.g. ${prefix}) in the Makefiles.
6288 # The variables in the Makefiles are replaced by AC_SUBST()
6290 # In sdccconf.h the '/' in paths can be replaced by "\\" (normalized), if
6292 # The macros are expanded for the header.
6293 # The variables in the header are replaced by AC_*DEFINE*()
6294 # sdccconf_h_dir_separator contains a backslash.
6296 if test "x${sdccconf_h_dir_separator}" = "x"; then
6297 sdccconf_h_dir_separator="/"
6303 # include_dir_suffix:
6304 # *nix default: "sdcc/include"
6307 if test "${include_dir_suffix}" = ""; then
6308 include_dir_suffix="sdcc/include"
6313 # *nix default: "sdcc/lib"
6315 if test "${lib_dir_suffix}" = ""; then
6316 lib_dir_suffix="sdcc/lib"
6321 # *nix default: "${datadir}/sdcc/doc"
6323 if test "${docdir}" = ""; then
6324 docdir="\${datadir}"/sdcc/doc
6333 cat >>confdefs.h <<_ACEOF
6334 #define DIR_SEPARATOR_STRING "${sdccconf_h_dir_separator}"
6337 cat >>confdefs.h <<_ACEOF
6338 #define DIR_SEPARATOR_CHAR '${sdccconf_h_dir_separator}'
6343 # default: "NONE", ${ac_default_prefix}: "/usr/local"
6345 test "x$prefix" = xNONE && prefix="$ac_default_prefix"
6346 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
6348 test "x$ac_expand" = xNONE && ac_expand="$ac_default_prefix"
6349 ac_expand=`eval echo $ac_expand`
6350 expanded_prefix=`eval echo $ac_expand`
6353 ac_ndu=$expanded_prefix
6356 :*[\\/]:) ac_ndu=`echo "$ac_ndu" | sed 's,[\\/]*$,,'` ;;
6359 case $sdccconf_h_dir_separator in
6361 *\\*) ac_ndu=`echo "$ac_ndu" | sed 's,\(.\)[\\/][\\/]*,\1\\\\\\\\,g
6362 s,^[\\/],\\\\\\\\,'` ;;
6364 *) ac_ndu=`echo "$ac_ndu" | sed 's,\(.\)[\\/][\\/]*,\1/,g'` ;;
6366 cat >>confdefs.h <<_ACEOF
6367 #define PREFIX "${ac_ndu}"
6373 # default: "${prefix}"
6375 test "x$prefix" = xNONE && prefix="$ac_default_prefix"
6376 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
6377 ac_expand=$exec_prefix
6378 test "x$ac_expand" = xNONE && ac_expand="$expanded_prefix"
6379 ac_expand=`eval echo $ac_expand`
6380 expanded_exec_prefix=`eval echo $ac_expand`
6383 ac_ndu=$expanded_exec_prefix
6386 :*[\\/]:) ac_ndu=`echo "$ac_ndu" | sed 's,[\\/]*$,,'` ;;
6389 case $sdccconf_h_dir_separator in
6391 *\\*) ac_ndu=`echo "$ac_ndu" | sed 's,\(.\)[\\/][\\/]*,\1\\\\\\\\,g
6392 s,^[\\/],\\\\\\\\,'` ;;
6394 *) ac_ndu=`echo "$ac_ndu" | sed 's,\(.\)[\\/][\\/]*,\1/,g'` ;;
6396 cat >>confdefs.h <<_ACEOF
6397 #define EXEC_PREFIX "${ac_ndu}"
6403 # default: "${exec_prefix}/bin"
6405 test "x$prefix" = xNONE && prefix="$ac_default_prefix"
6406 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
6408 test "x$ac_expand" = xNONE && ac_expand="$"NONE""
6409 ac_expand=`eval echo $ac_expand`
6410 expanded_bindir=`eval echo $ac_expand`
6413 ac_ndu=$expanded_bindir
6416 :*[\\/]:) ac_ndu=`echo "$ac_ndu" | sed 's,[\\/]*$,,'` ;;
6419 case $sdccconf_h_dir_separator in
6421 *\\*) ac_ndu=`echo "$ac_ndu" | sed 's,\(.\)[\\/][\\/]*,\1\\\\\\\\,g
6422 s,^[\\/],\\\\\\\\,'` ;;
6424 *) ac_ndu=`echo "$ac_ndu" | sed 's,\(.\)[\\/][\\/]*,\1/,g'` ;;
6426 cat >>confdefs.h <<_ACEOF
6427 #define BINDIR "${ac_ndu}"
6433 # default: "${prefix}/share"
6435 test "x$prefix" = xNONE && prefix="$ac_default_prefix"
6436 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
6438 test "x$ac_expand" = xNONE && ac_expand="$"NONE""
6439 ac_expand=`eval echo $ac_expand`
6440 expanded_datadir=`eval echo $ac_expand`
6443 ac_ndu=$expanded_datadir
6446 :*[\\/]:) ac_ndu=`echo "$ac_ndu" | sed 's,[\\/]*$,,'` ;;
6449 case $sdccconf_h_dir_separator in
6451 *\\*) ac_ndu=`echo "$ac_ndu" | sed 's,\(.\)[\\/][\\/]*,\1\\\\\\\\,g
6452 s,^[\\/],\\\\\\\\,'` ;;
6454 *) ac_ndu=`echo "$ac_ndu" | sed 's,\(.\)[\\/][\\/]*,\1/,g'` ;;
6456 cat >>confdefs.h <<_ACEOF
6457 #define DATADIR "${ac_ndu}"
6462 # include/lib suffix
6463 norm_inc_dir_suffix=${include_dir_suffix}
6464 case ":$norm_inc_dir_suffix:" in
6465 ::) norm_inc_dir_suffix='.' ;;
6466 :*[\\/]:) norm_inc_dir_suffix=`echo "$norm_inc_dir_suffix" | sed 's,[\\/]*$,,'` ;;
6469 case $sdccconf_h_dir_separator in
6471 *\\*) norm_inc_dir_suffix=`echo "$norm_inc_dir_suffix" | sed 's,\(.\)[\\/][\\/]*,\1\\\\\\\\,g
6472 s,^[\\/],\\\\\\\\,'` ;;
6474 *) norm_inc_dir_suffix=`echo "$norm_inc_dir_suffix" | sed 's,\(.\)[\\/][\\/]*,\1/,g'` ;;
6476 cat >>confdefs.h <<_ACEOF
6477 #define INCLUDE_DIR_SUFFIX DIR_SEPARATOR_STRING "${norm_inc_dir_suffix}"
6480 norm_lib_dir_suffix=${lib_dir_suffix}
6481 case ":$norm_lib_dir_suffix:" in
6482 ::) norm_lib_dir_suffix='.' ;;
6483 :*[\\/]:) norm_lib_dir_suffix=`echo "$norm_lib_dir_suffix" | sed 's,[\\/]*$,,'` ;;
6486 case $sdccconf_h_dir_separator in
6488 *\\*) norm_lib_dir_suffix=`echo "$norm_lib_dir_suffix" | sed 's,\(.\)[\\/][\\/]*,\1\\\\\\\\,g
6489 s,^[\\/],\\\\\\\\,'` ;;
6491 *) norm_lib_dir_suffix=`echo "$norm_lib_dir_suffix" | sed 's,\(.\)[\\/][\\/]*,\1/,g'` ;;
6493 cat >>confdefs.h <<_ACEOF
6494 #define LIB_DIR_SUFFIX DIR_SEPARATOR_STRING "${norm_lib_dir_suffix}"
6499 for _lcl_i in expanded_bindir:expanded_datadir:bin2data_dir; do
6500 _lcl_from=\$`echo "$_lcl_i" | sed 's,:.*$,,'`
6501 _lcl_to=\$`echo "$_lcl_i" | sed 's,^[^:]*:,,' | sed 's,:[^:]*$,,'`
6502 _lcl_result_var=`echo "$_lcl_i" | sed 's,^.*:,,'`
6503 _lcl_receval="$_lcl_from"
6504 _lcl_from=`(test "x$prefix" = xNONE && prefix="$ac_default_prefix"
6505 test "x$exec_prefix" = xNONE && exec_prefix="${prefix}"
6507 while test "$_lcl_receval_old" != "$_lcl_receval"; do
6508 _lcl_receval_old="$_lcl_receval"
6509 eval _lcl_receval="\"$_lcl_receval\""
6511 echo "$_lcl_receval")`
6512 _lcl_receval="$_lcl_to"
6513 _lcl_to=`(test "x$prefix" = xNONE && prefix="$ac_default_prefix"
6514 test "x$exec_prefix" = xNONE && exec_prefix="${prefix}"
6516 while test "$_lcl_receval_old" != "$_lcl_receval"; do
6517 _lcl_receval_old="$_lcl_receval"
6518 eval _lcl_receval="\"$_lcl_receval\""
6520 echo "$_lcl_receval")`
6521 _lcl_notation="$_lcl_from$_lcl_to"
6522 case ":$_lcl_from:" in
6523 ::) _lcl_from='.' ;;
6524 :*[\\/]:) _lcl_from=`echo "$_lcl_from" | sed 's,[\\/]*$,,'` ;;
6529 *\\*) _lcl_from=`echo "$_lcl_from" | sed 's,\(.\)[\\/][\\/]*,\1\\\\\\\\,g
6530 s,^[\\/],\\\\\\\\,'` ;;
6532 *) _lcl_from=`echo "$_lcl_from" | sed 's,\(.\)[\\/][\\/]*,\1/,g'` ;;
6534 case ":$_lcl_to:" in
6536 :*[\\/]:) _lcl_to=`echo "$_lcl_to" | sed 's,[\\/]*$,,'` ;;
6541 *\\*) _lcl_to=`echo "$_lcl_to" | sed 's,\(.\)[\\/][\\/]*,\1\\\\\\\\,g
6542 s,^[\\/],\\\\\\\\,'` ;;
6544 *) _lcl_to=`echo "$_lcl_to" | sed 's,\(.\)[\\/][\\/]*,\1/,g'` ;;
6546 _lcl_common_prefix=''
6547 _lcl_second_prefix_match=''
6548 while test "$_lcl_second_prefix_match" != 0; do
6549 _lcl_first_prefix=`expr "x$_lcl_from" : "x\($_lcl_common_prefix/*[^/]*\)"`
6550 _lcl_second_prefix_match=`expr "x$_lcl_to" : "x$_lcl_first_prefix"`
6551 if test "$_lcl_second_prefix_match" != 0; then
6552 if test "$_lcl_first_prefix" != "$_lcl_common_prefix"; then
6553 _lcl_common_prefix="$_lcl_first_prefix"
6555 _lcl_second_prefix_match=0
6559 _lcl_first_suffix=`expr "x$_lcl_from" : "x$_lcl_common_prefix/*\(.*\)"`
6562 while test "$_lcl_tmp" != ''; do
6563 _lcl_tmp=`expr "x$_lcl_first_suffix" : "x[^/]*/*\(.*\)"`
6564 if test "$_lcl_first_suffix" != ''; then
6565 _lcl_first_suffix="$_lcl_tmp"
6566 _lcl_first_rel="../$_lcl_first_rel"
6569 _lcl_second_suffix=`expr "x$_lcl_to" : "x$_lcl_common_prefix/*\(.*\)"`
6570 _lcl_result_tmp="$_lcl_first_rel$_lcl_second_suffix"
6571 case ":$_lcl_result_tmp:" in
6572 ::) _lcl_result_tmp='.' ;;
6573 :*[\\/]:) _lcl_result_tmp=`echo "$_lcl_result_tmp" | sed 's,[\\/]*$,,'` ;;
6576 case "$_lcl_notation" in
6578 *\\*) _lcl_result_tmp=`echo "$_lcl_result_tmp" | sed 's,\(.\)[\\/][\\/]*,\1\\\\\\\\,g
6579 s,^[\\/],\\\\\\\\,'` ;;
6581 *) _lcl_result_tmp=`echo "$_lcl_result_tmp" | sed 's,\(.\)[\\/][\\/]*,\1/,g'` ;;
6583 eval $_lcl_result_var='$_lcl_result_tmp'
6585 case ":$bin2data_dir:" in
6586 ::) bin2data_dir='.' ;;
6587 :*[\\/]:) bin2data_dir=`echo "$bin2data_dir" | sed 's,[\\/]*$,,'` ;;
6590 case $sdccconf_h_dir_separator in
6592 *\\*) bin2data_dir=`echo "$bin2data_dir" | sed 's,\(.\)[\\/][\\/]*,\1\\\\\\\\,g
6593 s,^[\\/],\\\\\\\\,'` ;;
6595 *) bin2data_dir=`echo "$bin2data_dir" | sed 's,\(.\)[\\/][\\/]*,\1/,g'` ;;
6597 cat >>confdefs.h <<_ACEOF
6598 #define BIN2DATA_DIR DIR_SEPARATOR_STRING "${bin2data_dir}"
6602 for _lcl_i in expanded_prefix:expanded_bindir:prefix2bin_dir; do
6603 _lcl_from=\$`echo "$_lcl_i" | sed 's,:.*$,,'`
6604 _lcl_to=\$`echo "$_lcl_i" | sed 's,^[^:]*:,,' | sed 's,:[^:]*$,,'`
6605 _lcl_result_var=`echo "$_lcl_i" | sed 's,^.*:,,'`
6606 _lcl_receval="$_lcl_from"
6607 _lcl_from=`(test "x$prefix" = xNONE && prefix="$ac_default_prefix"
6608 test "x$exec_prefix" = xNONE && exec_prefix="${prefix}"
6610 while test "$_lcl_receval_old" != "$_lcl_receval"; do
6611 _lcl_receval_old="$_lcl_receval"
6612 eval _lcl_receval="\"$_lcl_receval\""
6614 echo "$_lcl_receval")`
6615 _lcl_receval="$_lcl_to"
6616 _lcl_to=`(test "x$prefix" = xNONE && prefix="$ac_default_prefix"
6617 test "x$exec_prefix" = xNONE && exec_prefix="${prefix}"
6619 while test "$_lcl_receval_old" != "$_lcl_receval"; do
6620 _lcl_receval_old="$_lcl_receval"
6621 eval _lcl_receval="\"$_lcl_receval\""
6623 echo "$_lcl_receval")`
6624 _lcl_notation="$_lcl_from$_lcl_to"
6625 case ":$_lcl_from:" in
6626 ::) _lcl_from='.' ;;
6627 :*[\\/]:) _lcl_from=`echo "$_lcl_from" | sed 's,[\\/]*$,,'` ;;
6632 *\\*) _lcl_from=`echo "$_lcl_from" | sed 's,\(.\)[\\/][\\/]*,\1\\\\\\\\,g
6633 s,^[\\/],\\\\\\\\,'` ;;
6635 *) _lcl_from=`echo "$_lcl_from" | sed 's,\(.\)[\\/][\\/]*,\1/,g'` ;;
6637 case ":$_lcl_to:" in
6639 :*[\\/]:) _lcl_to=`echo "$_lcl_to" | sed 's,[\\/]*$,,'` ;;
6644 *\\*) _lcl_to=`echo "$_lcl_to" | sed 's,\(.\)[\\/][\\/]*,\1\\\\\\\\,g
6645 s,^[\\/],\\\\\\\\,'` ;;
6647 *) _lcl_to=`echo "$_lcl_to" | sed 's,\(.\)[\\/][\\/]*,\1/,g'` ;;
6649 _lcl_common_prefix=''
6650 _lcl_second_prefix_match=''
6651 while test "$_lcl_second_prefix_match" != 0; do
6652 _lcl_first_prefix=`expr "x$_lcl_from" : "x\($_lcl_common_prefix/*[^/]*\)"`
6653 _lcl_second_prefix_match=`expr "x$_lcl_to" : "x$_lcl_first_prefix"`
6654 if test "$_lcl_second_prefix_match" != 0; then
6655 if test "$_lcl_first_prefix" != "$_lcl_common_prefix"; then
6656 _lcl_common_prefix="$_lcl_first_prefix"
6658 _lcl_second_prefix_match=0
6662 _lcl_first_suffix=`expr "x$_lcl_from" : "x$_lcl_common_prefix/*\(.*\)"`
6665 while test "$_lcl_tmp" != ''; do
6666 _lcl_tmp=`expr "x$_lcl_first_suffix" : "x[^/]*/*\(.*\)"`
6667 if test "$_lcl_first_suffix" != ''; then
6668 _lcl_first_suffix="$_lcl_tmp"
6669 _lcl_first_rel="../$_lcl_first_rel"
6672 _lcl_second_suffix=`expr "x$_lcl_to" : "x$_lcl_common_prefix/*\(.*\)"`
6673 _lcl_result_tmp="$_lcl_first_rel$_lcl_second_suffix"
6674 case ":$_lcl_result_tmp:" in
6675 ::) _lcl_result_tmp='.' ;;
6676 :*[\\/]:) _lcl_result_tmp=`echo "$_lcl_result_tmp" | sed 's,[\\/]*$,,'` ;;
6679 case "$_lcl_notation" in
6681 *\\*) _lcl_result_tmp=`echo "$_lcl_result_tmp" | sed 's,\(.\)[\\/][\\/]*,\1\\\\\\\\,g
6682 s,^[\\/],\\\\\\\\,'` ;;
6684 *) _lcl_result_tmp=`echo "$_lcl_result_tmp" | sed 's,\(.\)[\\/][\\/]*,\1/,g'` ;;
6686 eval $_lcl_result_var='$_lcl_result_tmp'
6688 case ":$prefix2bin_dir:" in
6689 ::) prefix2bin_dir='.' ;;
6690 :*[\\/]:) prefix2bin_dir=`echo "$prefix2bin_dir" | sed 's,[\\/]*$,,'` ;;
6693 case $sdccconf_h_dir_separator in
6695 *\\*) prefix2bin_dir=`echo "$prefix2bin_dir" | sed 's,\(.\)[\\/][\\/]*,\1\\\\\\\\,g
6696 s,^[\\/],\\\\\\\\,'` ;;
6698 *) prefix2bin_dir=`echo "$prefix2bin_dir" | sed 's,\(.\)[\\/][\\/]*,\1/,g'` ;;
6700 cat >>confdefs.h <<_ACEOF
6701 #define PREFIX2BIN_DIR DIR_SEPARATOR_STRING "${prefix2bin_dir}"
6705 for _lcl_i in expanded_prefix:expanded_datadir:prefix2data_dir; do
6706 _lcl_from=\$`echo "$_lcl_i" | sed 's,:.*$,,'`
6707 _lcl_to=\$`echo "$_lcl_i" | sed 's,^[^:]*:,,' | sed 's,:[^:]*$,,'`
6708 _lcl_result_var=`echo "$_lcl_i" | sed 's,^.*:,,'`
6709 _lcl_receval="$_lcl_from"
6710 _lcl_from=`(test "x$prefix" = xNONE && prefix="$ac_default_prefix"
6711 test "x$exec_prefix" = xNONE && exec_prefix="${prefix}"
6713 while test "$_lcl_receval_old" != "$_lcl_receval"; do
6714 _lcl_receval_old="$_lcl_receval"
6715 eval _lcl_receval="\"$_lcl_receval\""
6717 echo "$_lcl_receval")`
6718 _lcl_receval="$_lcl_to"
6719 _lcl_to=`(test "x$prefix" = xNONE && prefix="$ac_default_prefix"
6720 test "x$exec_prefix" = xNONE && exec_prefix="${prefix}"
6722 while test "$_lcl_receval_old" != "$_lcl_receval"; do
6723 _lcl_receval_old="$_lcl_receval"
6724 eval _lcl_receval="\"$_lcl_receval\""
6726 echo "$_lcl_receval")`
6727 _lcl_notation="$_lcl_from$_lcl_to"
6728 case ":$_lcl_from:" in
6729 ::) _lcl_from='.' ;;
6730 :*[\\/]:) _lcl_from=`echo "$_lcl_from" | sed 's,[\\/]*$,,'` ;;
6735 *\\*) _lcl_from=`echo "$_lcl_from" | sed 's,\(.\)[\\/][\\/]*,\1\\\\\\\\,g
6736 s,^[\\/],\\\\\\\\,'` ;;
6738 *) _lcl_from=`echo "$_lcl_from" | sed 's,\(.\)[\\/][\\/]*,\1/,g'` ;;
6740 case ":$_lcl_to:" in
6742 :*[\\/]:) _lcl_to=`echo "$_lcl_to" | sed 's,[\\/]*$,,'` ;;
6747 *\\*) _lcl_to=`echo "$_lcl_to" | sed 's,\(.\)[\\/][\\/]*,\1\\\\\\\\,g
6748 s,^[\\/],\\\\\\\\,'` ;;
6750 *) _lcl_to=`echo "$_lcl_to" | sed 's,\(.\)[\\/][\\/]*,\1/,g'` ;;
6752 _lcl_common_prefix=''
6753 _lcl_second_prefix_match=''
6754 while test "$_lcl_second_prefix_match" != 0; do
6755 _lcl_first_prefix=`expr "x$_lcl_from" : "x\($_lcl_common_prefix/*[^/]*\)"`
6756 _lcl_second_prefix_match=`expr "x$_lcl_to" : "x$_lcl_first_prefix"`
6757 if test "$_lcl_second_prefix_match" != 0; then
6758 if test "$_lcl_first_prefix" != "$_lcl_common_prefix"; then
6759 _lcl_common_prefix="$_lcl_first_prefix"
6761 _lcl_second_prefix_match=0
6765 _lcl_first_suffix=`expr "x$_lcl_from" : "x$_lcl_common_prefix/*\(.*\)"`
6768 while test "$_lcl_tmp" != ''; do
6769 _lcl_tmp=`expr "x$_lcl_first_suffix" : "x[^/]*/*\(.*\)"`
6770 if test "$_lcl_first_suffix" != ''; then
6771 _lcl_first_suffix="$_lcl_tmp"
6772 _lcl_first_rel="../$_lcl_first_rel"
6775 _lcl_second_suffix=`expr "x$_lcl_to" : "x$_lcl_common_prefix/*\(.*\)"`
6776 _lcl_result_tmp="$_lcl_first_rel$_lcl_second_suffix"
6777 case ":$_lcl_result_tmp:" in
6778 ::) _lcl_result_tmp='.' ;;
6779 :*[\\/]:) _lcl_result_tmp=`echo "$_lcl_result_tmp" | sed 's,[\\/]*$,,'` ;;
6782 case "$_lcl_notation" in
6784 *\\*) _lcl_result_tmp=`echo "$_lcl_result_tmp" | sed 's,\(.\)[\\/][\\/]*,\1\\\\\\\\,g
6785 s,^[\\/],\\\\\\\\,'` ;;
6787 *) _lcl_result_tmp=`echo "$_lcl_result_tmp" | sed 's,\(.\)[\\/][\\/]*,\1/,g'` ;;
6789 eval $_lcl_result_var='$_lcl_result_tmp'
6791 case ":$prefix2data_dir:" in
6792 ::) prefix2data_dir='.' ;;
6793 :*[\\/]:) prefix2data_dir=`echo "$prefix2data_dir" | sed 's,[\\/]*$,,'` ;;
6796 case $sdccconf_h_dir_separator in
6798 *\\*) prefix2data_dir=`echo "$prefix2data_dir" | sed 's,\(.\)[\\/][\\/]*,\1\\\\\\\\,g
6799 s,^[\\/],\\\\\\\\,'` ;;
6801 *) prefix2data_dir=`echo "$prefix2data_dir" | sed 's,\(.\)[\\/][\\/]*,\1/,g'` ;;
6803 if test "${prefix2data_dir}" = "."; then
6804 # small optimization for Mingw32; otherwise Borut will complain ;-)
6805 cat >>confdefs.h <<_ACEOF
6806 #define PREFIX2DATA_DIR ""
6810 cat >>confdefs.h <<_ACEOF
6811 #define PREFIX2DATA_DIR DIR_SEPARATOR_STRING "${prefix2data_dir}"
6817 cat >>confdefs.h <<_ACEOF
6818 #define STD_LIB "libsdcc"
6821 cat >>confdefs.h <<_ACEOF
6822 #define STD_INT_LIB "libint"
6825 cat >>confdefs.h <<_ACEOF
6826 #define STD_LONG_LIB "liblong"
6829 cat >>confdefs.h <<_ACEOF
6830 #define STD_FP_LIB "libfloat"
6833 cat >>confdefs.h <<_ACEOF
6834 #define STD_DS390_LIB "libds390"
6837 cat >>confdefs.h <<_ACEOF
6838 #define STD_DS400_LIB "libds400"
6841 cat >>confdefs.h <<_ACEOF
6842 #define STD_XA51_LIB "libxa51"
6846 # SDCC runtime environment variables
6847 sdcc_dir_name="SDCC_HOME"
6848 cat >>confdefs.h <<_ACEOF
6849 #define SDCC_DIR_NAME "${sdcc_dir_name}"
6853 sdcc_include_name="SDCC_INCLUDE"
6854 cat >>confdefs.h <<_ACEOF
6855 #define SDCC_INCLUDE_NAME "${sdcc_include_name}"
6859 sdcc_lib_name="SDCC_LIB"
6860 cat >>confdefs.h <<_ACEOF
6861 #define SDCC_LIB_NAME "${sdcc_lib_name}"
6865 # Port selection helper
6866 # ===========================================================================
6867 # macro AC_DO_ENABLER()
6868 # $1 used to access enable_$1, e.g. enable-doc
6869 # $2 OPT_DISABLE_$2, normally uppercase of $1, e.g. DOC
6873 # macro AC_DO_DISABLER()
6874 # $1 used to access disable_$1, e.g. ucsim
6875 # $2 OPT_DISABLE_$2, normally uppercase of $1, e.g. UCSIM
6879 # macro AC_DO_PORT($1, $2, $3, $4)
6880 # $1 used to access enable_$2_port, e.g. gbz80
6881 # $2 port name in ports.all and ports.build, e.g. z80
6882 # $3 OPT_DISABLE_$3, normally uppercase of $2, e.g. GBZ80
6886 # Now handle the port selection
6887 # ===========================================================================
6888 rm -f ports.all ports.build
6890 # Check whether --enable-mcs51-port was given.
6891 if test "${enable_mcs51_port+set}" = set; then
6892 enableval=$enable_mcs51_port;
6896 if test "$enable_mcs51_port" = "no"; then
6899 enable_mcs51_port="yes"
6903 cat >>confdefs.h <<_ACEOF
6904 #define OPT_DISABLE_MCS51 $OPT_DISABLE_MCS51
6909 echo mcs51 >>ports.all
6910 if test $OPT_DISABLE_MCS51 = 0; then
6911 echo mcs51 >>ports.build
6915 # Check whether --enable-gbz80-port was given.
6916 if test "${enable_gbz80_port+set}" = set; then
6917 enableval=$enable_gbz80_port;
6921 if test "$enable_gbz80_port" = "no"; then
6924 enable_gbz80_port="yes"
6928 cat >>confdefs.h <<_ACEOF
6929 #define OPT_DISABLE_GBZ80 $OPT_DISABLE_GBZ80
6934 echo z80 >>ports.all
6935 if test $OPT_DISABLE_GBZ80 = 0; then
6936 echo z80 >>ports.build
6940 # Check whether --enable-z80-port was given.
6941 if test "${enable_z80_port+set}" = set; then
6942 enableval=$enable_z80_port;
6946 if test "$enable_z80_port" = "no"; then
6949 enable_z80_port="yes"
6953 cat >>confdefs.h <<_ACEOF
6954 #define OPT_DISABLE_Z80 $OPT_DISABLE_Z80
6959 echo z80 >>ports.all
6960 if test $OPT_DISABLE_Z80 = 0; then
6961 echo z80 >>ports.build
6965 # Check whether --enable-avr-port was given.
6966 if test "${enable_avr_port+set}" = set; then
6967 enableval=$enable_avr_port;
6971 if test "$enable_avr_port" = "no"; then
6974 enable_avr_port="yes"
6978 cat >>confdefs.h <<_ACEOF
6979 #define OPT_DISABLE_AVR $OPT_DISABLE_AVR
6984 echo avr >>ports.all
6985 if test $OPT_DISABLE_AVR = 0; then
6986 echo avr >>ports.build
6990 # Check whether --enable-ds390-port was given.
6991 if test "${enable_ds390_port+set}" = set; then
6992 enableval=$enable_ds390_port;
6996 if test "$enable_ds390_port" = "no"; then
6999 enable_ds390_port="yes"
7003 cat >>confdefs.h <<_ACEOF
7004 #define OPT_DISABLE_DS390 $OPT_DISABLE_DS390
7009 echo ds390 >>ports.all
7010 if test $OPT_DISABLE_DS390 = 0; then
7011 echo ds390 >>ports.build
7014 cat >>confdefs.h <<_ACEOF
7015 #define OPT_DISABLE_TININative $OPT_DISABLE_DS390
7019 # Check whether --enable-ds400-port was given.
7020 if test "${enable_ds400_port+set}" = set; then
7021 enableval=$enable_ds400_port;
7025 if test "$enable_ds400_port" = "no"; then
7028 enable_ds400_port="yes"
7032 cat >>confdefs.h <<_ACEOF
7033 #define OPT_DISABLE_DS400 $OPT_DISABLE_DS400
7038 echo ds400 >>ports.all
7039 if test $OPT_DISABLE_DS400 = 0; then
7040 echo ds400 >>ports.build
7044 # Check whether --enable-pic-port was given.
7045 if test "${enable_pic_port+set}" = set; then
7046 enableval=$enable_pic_port;
7050 if test "$enable_pic_port" = "no"; then
7053 enable_pic_port="yes"
7057 cat >>confdefs.h <<_ACEOF
7058 #define OPT_DISABLE_PIC $OPT_DISABLE_PIC
7063 echo pic >>ports.all
7064 if test $OPT_DISABLE_PIC = 0; then
7065 echo pic >>ports.build
7069 # Check whether --enable-pic16-port was given.
7070 if test "${enable_pic16_port+set}" = set; then
7071 enableval=$enable_pic16_port;
7075 if test "$enable_pic16_port" = "no"; then
7078 enable_pic16_port="yes"
7082 cat >>confdefs.h <<_ACEOF
7083 #define OPT_DISABLE_PIC16 $OPT_DISABLE_PIC16
7088 echo pic16 >>ports.all
7089 if test $OPT_DISABLE_PIC16 = 0; then
7090 echo pic16 >>ports.build
7094 # Check whether --enable-xa51-port was given.
7095 if test "${enable_xa51_port+set}" = set; then
7096 enableval=$enable_xa51_port;
7100 if test "$enable_xa51_port" = "no"; then
7103 enable_xa51_port="yes"
7107 cat >>confdefs.h <<_ACEOF
7108 #define OPT_DISABLE_XA51 $OPT_DISABLE_XA51
7113 echo xa51 >>ports.all
7114 if test $OPT_DISABLE_XA51 = 0; then
7115 echo xa51 >>ports.build
7119 # Check whether --enable-hc08-port was given.
7120 if test "${enable_hc08_port+set}" = set; then
7121 enableval=$enable_hc08_port;
7125 if test "$enable_hc08_port" = "no"; then
7128 enable_hc08_port="yes"
7132 cat >>confdefs.h <<_ACEOF
7133 #define OPT_DISABLE_HC08 $OPT_DISABLE_HC08
7138 echo hc08 >>ports.all
7139 if test $OPT_DISABLE_HC08 = 0; then
7140 echo hc08 >>ports.build
7145 # Check whether --enable-ucsim was given.
7146 if test "${enable_ucsim+set}" = set; then
7147 enableval=$enable_ucsim;
7151 arg1=`echo ucsim | sed s/-/_/`
7153 if test "`eval echo \\$enable_$arg1`" = "no"; then
7159 cat >>confdefs.h <<_ACEOF
7160 #define OPT_DISABLE_UCSIM $OPT_DISABLE_UCSIM
7166 # Check whether --enable-device-lib was given.
7167 if test "${enable_device_lib+set}" = set; then
7168 enableval=$enable_device_lib;
7172 arg1=`echo device-lib | sed s/-/_/`
7174 if test "`eval echo \\$enable_$arg1`" = "no"; then
7175 OPT_DISABLE_DEVICE_LIB=1
7177 OPT_DISABLE_DEVICE_LIB=0
7180 cat >>confdefs.h <<_ACEOF
7181 #define OPT_DISABLE_DEVICE_LIB $OPT_DISABLE_DEVICE_LIB
7187 # Check whether --enable-packihx was given.
7188 if test "${enable_packihx+set}" = set; then
7189 enableval=$enable_packihx;
7193 arg1=`echo packihx | sed s/-/_/`
7195 if test "`eval echo \\$enable_$arg1`" = "no"; then
7196 OPT_DISABLE_PACKIHX=1
7198 OPT_DISABLE_PACKIHX=0
7201 cat >>confdefs.h <<_ACEOF
7202 #define OPT_DISABLE_PACKIHX $OPT_DISABLE_PACKIHX
7208 # Check whether --enable-sdcpp was given.
7209 if test "${enable_sdcpp+set}" = set; then
7210 enableval=$enable_sdcpp;
7214 arg1=`echo sdcpp | sed s/-/_/`
7216 if test "`eval echo \\$enable_$arg1`" = "no"; then
7222 cat >>confdefs.h <<_ACEOF
7223 #define OPT_DISABLE_SDCPP $OPT_DISABLE_SDCPP
7229 # Check whether --enable-sdcdb was given.
7230 if test "${enable_sdcdb+set}" = set; then
7231 enableval=$enable_sdcdb;
7235 arg1=`echo sdcdb | sed s/-/_/`
7237 if test "`eval echo \\$enable_$arg1`" = "no"; then
7243 cat >>confdefs.h <<_ACEOF
7244 #define OPT_DISABLE_SDCDB $OPT_DISABLE_SDCDB
7251 # Check whether --enable-doc was given.
7252 if test "${enable_doc+set}" = set; then
7253 enableval=$enable_doc;
7257 if test "$enable_doc" = "yes"; then
7263 cat >>confdefs.h <<_ACEOF
7264 #define OPT_ENABLE_DOC $OPT_ENABLE_DOC
7269 if test $OPT_ENABLE_DOC = 1; then
7270 # Extract the first word of "lyx", so it can be a program name with args.
7271 set dummy lyx; ac_word=$2
7272 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7273 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7274 if test "${ac_cv_prog_LYX+set}" = set; then
7275 echo $ECHO_N "(cached) $ECHO_C" >&6
7277 if test -n "$LYX"; then
7278 ac_cv_prog_LYX="$LYX" # Let the user override the test.
7280 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7284 test -z "$as_dir" && as_dir=.
7285 for ac_exec_ext in '' $ac_executable_extensions; do
7286 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7287 ac_cv_prog_LYX="lyx"
7288 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7295 test -z "$ac_cv_prog_LYX" && ac_cv_prog_LYX=":"
7299 if test -n "$LYX"; then
7300 { echo "$as_me:$LINENO: result: $LYX" >&5
7301 echo "${ECHO_T}$LYX" >&6; }
7303 { echo "$as_me:$LINENO: result: no" >&5
7304 echo "${ECHO_T}no" >&6; }
7308 # Extract the first word of "latex2html", so it can be a program name with args.
7309 set dummy latex2html; ac_word=$2
7310 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7311 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7312 if test "${ac_cv_prog_LATEX2HTML+set}" = set; then
7313 echo $ECHO_N "(cached) $ECHO_C" >&6
7315 if test -n "$LATEX2HTML"; then
7316 ac_cv_prog_LATEX2HTML="$LATEX2HTML" # Let the user override the test.
7318 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7322 test -z "$as_dir" && as_dir=.
7323 for ac_exec_ext in '' $ac_executable_extensions; do
7324 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7325 ac_cv_prog_LATEX2HTML="latex2html"
7326 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7333 test -z "$ac_cv_prog_LATEX2HTML" && ac_cv_prog_LATEX2HTML=":"
7336 LATEX2HTML=$ac_cv_prog_LATEX2HTML
7337 if test -n "$LATEX2HTML"; then
7338 { echo "$as_me:$LINENO: result: $LATEX2HTML" >&5
7339 echo "${ECHO_T}$LATEX2HTML" >&6; }
7341 { echo "$as_me:$LINENO: result: no" >&5
7342 echo "${ECHO_T}no" >&6; }
7346 # Extract the first word of "pdflatex", so it can be a program name with args.
7347 set dummy pdflatex; ac_word=$2
7348 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7349 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7350 if test "${ac_cv_prog_PDFLATEX+set}" = set; then
7351 echo $ECHO_N "(cached) $ECHO_C" >&6
7353 if test -n "$PDFLATEX"; then
7354 ac_cv_prog_PDFLATEX="$PDFLATEX" # Let the user override the test.
7356 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7360 test -z "$as_dir" && as_dir=.
7361 for ac_exec_ext in '' $ac_executable_extensions; do
7362 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7363 ac_cv_prog_PDFLATEX="pdflatex"
7364 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7371 test -z "$ac_cv_prog_PDFLATEX" && ac_cv_prog_PDFLATEX=":"
7374 PDFLATEX=$ac_cv_prog_PDFLATEX
7375 if test -n "$PDFLATEX"; then
7376 { echo "$as_me:$LINENO: result: $PDFLATEX" >&5
7377 echo "${ECHO_T}$PDFLATEX" >&6; }
7379 { echo "$as_me:$LINENO: result: no" >&5
7380 echo "${ECHO_T}no" >&6; }
7384 # Extract the first word of "pdfopt", so it can be a program name with args.
7385 set dummy pdfopt; ac_word=$2
7386 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7387 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7388 if test "${ac_cv_prog_PDFOPT+set}" = set; then
7389 echo $ECHO_N "(cached) $ECHO_C" >&6
7391 if test -n "$PDFOPT"; then
7392 ac_cv_prog_PDFOPT="$PDFOPT" # Let the user override the test.
7394 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7398 test -z "$as_dir" && as_dir=.
7399 for ac_exec_ext in '' $ac_executable_extensions; do
7400 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7401 ac_cv_prog_PDFOPT="pdfopt"
7402 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7409 test -z "$ac_cv_prog_PDFOPT" && ac_cv_prog_PDFOPT=":"
7412 PDFOPT=$ac_cv_prog_PDFOPT
7413 if test -n "$PDFOPT"; then
7414 { echo "$as_me:$LINENO: result: $PDFOPT" >&5
7415 echo "${ECHO_T}$PDFOPT" >&6; }
7417 { echo "$as_me:$LINENO: result: no" >&5
7418 echo "${ECHO_T}no" >&6; }
7422 # Extract the first word of "makeindex", so it can be a program name with args.
7423 set dummy makeindex; ac_word=$2
7424 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7425 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7426 if test "${ac_cv_prog_MAKEINDEX+set}" = set; then
7427 echo $ECHO_N "(cached) $ECHO_C" >&6
7429 if test -n "$MAKEINDEX"; then
7430 ac_cv_prog_MAKEINDEX="$MAKEINDEX" # Let the user override the test.
7432 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7436 test -z "$as_dir" && as_dir=.
7437 for ac_exec_ext in '' $ac_executable_extensions; do
7438 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7439 ac_cv_prog_MAKEINDEX="makeindex"
7440 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7447 test -z "$ac_cv_prog_MAKEINDEX" && ac_cv_prog_MAKEINDEX=":"
7450 MAKEINDEX=$ac_cv_prog_MAKEINDEX
7451 if test -n "$MAKEINDEX"; then
7452 { echo "$as_me:$LINENO: result: $MAKEINDEX" >&5
7453 echo "${ECHO_T}$MAKEINDEX" >&6; }
7455 { echo "$as_me:$LINENO: result: no" >&5
7456 echo "${ECHO_T}no" >&6; }
7461 if test "$LYX" = ":"; then
7462 { { echo "$as_me:$LINENO: error: Cannot find required program lyx." >&5
7463 echo "$as_me: error: Cannot find required program lyx." >&2;}
7464 { (exit 1); exit 1; }; }
7467 if test "$LATEX2HTML" = ":"; then
7468 { { echo "$as_me:$LINENO: error: Cannot find required program latex2html." >&5
7469 echo "$as_me: error: Cannot find required program latex2html." >&2;}
7470 { (exit 1); exit 1; }; }
7473 if test "$PDFLATEX" = ":"; then
7474 { { echo "$as_me:$LINENO: error: Cannot find required program pdflatex." >&5
7475 echo "$as_me: error: Cannot find required program pdflatex." >&2;}
7476 { (exit 1); exit 1; }; }
7479 if test "$PDFOPT" = ":"; then
7480 { { echo "$as_me:$LINENO: error: Cannot find required program pdfopt." >&5
7481 echo "$as_me: error: Cannot find required program pdfopt." >&2;}
7482 { (exit 1); exit 1; }; }
7485 if test "$MAKEINDEX" = ":"; then
7486 { { echo "$as_me:$LINENO: error: Cannot find required program makeindex." >&5
7487 echo "$as_me: error: Cannot find required program makeindex." >&2;}
7488 { (exit 1); exit 1; }; }
7494 # Check whether --enable-libgc was given.
7495 if test "${enable_libgc+set}" = set; then
7496 enableval=$enable_libgc;
7500 if test "$enable_libgc" = "yes"; then
7506 cat >>confdefs.h <<_ACEOF
7507 #define OPT_ENABLE_LIBGC $OPT_ENABLE_LIBGC
7512 if test $OPT_ENABLE_LIBGC = 1; then
7514 { echo "$as_me:$LINENO: checking for GC_malloc in -lgc" >&5
7515 echo $ECHO_N "checking for GC_malloc in -lgc... $ECHO_C" >&6; }
7516 if test "${ac_cv_lib_gc_GC_malloc+set}" = set; then
7517 echo $ECHO_N "(cached) $ECHO_C" >&6
7519 ac_check_lib_save_LIBS=$LIBS
7521 cat >conftest.$ac_ext <<_ACEOF
7524 cat confdefs.h >>conftest.$ac_ext
7525 cat >>conftest.$ac_ext <<_ACEOF
7526 /* end confdefs.h. */
7528 /* Override any GCC internal prototype to avoid an error.
7529 Use char because int might match the return type of a GCC
7530 builtin and then its argument prototype would still apply. */
7538 return GC_malloc ();
7543 rm -f conftest.$ac_objext conftest$ac_exeext
7544 if { (ac_try="$ac_link"
7546 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7547 *) ac_try_echo=$ac_try;;
7549 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7550 (eval "$ac_link") 2>conftest.er1
7552 grep -v '^ *+' conftest.er1 >conftest.err
7554 cat conftest.err >&5
7555 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7556 (exit $ac_status); } && {
7557 test -z "$ac_c_werror_flag" ||
7558 test ! -s conftest.err
7559 } && test -s conftest$ac_exeext &&
7560 $as_test_x conftest$ac_exeext; then
7561 ac_cv_lib_gc_GC_malloc=yes
7563 echo "$as_me: failed program was:" >&5
7564 sed 's/^/| /' conftest.$ac_ext >&5
7566 ac_cv_lib_gc_GC_malloc=no
7569 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7570 conftest$ac_exeext conftest.$ac_ext
7571 LIBS=$ac_check_lib_save_LIBS
7573 { echo "$as_me:$LINENO: result: $ac_cv_lib_gc_GC_malloc" >&5
7574 echo "${ECHO_T}$ac_cv_lib_gc_GC_malloc" >&6; }
7575 if test $ac_cv_lib_gc_GC_malloc = yes; then
7576 cat >>confdefs.h <<_ACEOF
7577 #define HAVE_LIBGC 1
7584 if test $ac_cv_lib_gc_GC_malloc = no; then
7585 { { echo "$as_me:$LINENO: error: Cannot find library libgc with Bohem memory allocator." >&5
7586 echo "$as_me: error: Cannot find library libgc with Bohem memory allocator." >&2;}
7587 { (exit 1); exit 1; }; }
7592 uniq ports.all ports
7594 uniq ports.build ports
7595 mv ports ports.build
7597 # Generating output files
7598 # ===========================================================================
7599 test $OPT_DISABLE_SDCPP = 0 && subdirs="$subdirs support/cpp2"
7601 test $OPT_DISABLE_PACKIHX = 0 && subdirs="$subdirs support/packihx"
7603 test $OPT_DISABLE_UCSIM = 0 && subdirs="$subdirs sim/ucsim"
7605 test $OPT_DISABLE_SDCDB = 0 && subdirs="$subdirs debugger/mcs51"
7607 ac_config_files="$ac_config_files doc/Makefile"
7610 test $OPT_DISABLE_AVR = 0 && ac_config_files="$ac_config_files src/avr/Makefile"
7613 if test $OPT_DISABLE_DS390 = 0; then
7614 ac_config_files="$ac_config_files src/ds390/Makefile"
7616 test $OPT_DISABLE_DEVICE_LIB = 0 && ac_config_files="$ac_config_files device/lib/ds390/Makefile"
7620 if test $OPT_DISABLE_DS400 = 0; then
7621 ac_config_files="$ac_config_files src/ds400/Makefile"
7623 test $OPT_DISABLE_DEVICE_LIB = 0 && ac_config_files="$ac_config_files device/lib/ds400/Makefile"
7627 if test $OPT_DISABLE_HC08 = 0; then
7628 ac_config_files="$ac_config_files src/hc08/Makefile as/hc08/Makefile as/link/hc08/Makefile"
7630 test $OPT_DISABLE_DEVICE_LIB = 0 && ac_config_files="$ac_config_files device/lib/hc08/Makefile"
7634 if test $OPT_DISABLE_MCS51 = 0; then
7635 ac_config_files="$ac_config_files src/mcs51/Makefile as/mcs51/Makefile as/link/mcs51/Makefile"
7637 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"
7641 if test $OPT_DISABLE_PIC = 0; then
7642 ac_config_files="$ac_config_files src/pic/Makefile"
7644 test $OPT_DISABLE_DEVICE_LIB = 0 && subdirs="$subdirs device/lib/pic"
7647 if test $OPT_DISABLE_PIC16 = 0; then
7648 ac_config_files="$ac_config_files src/pic16/Makefile"
7650 test $OPT_DISABLE_DEVICE_LIB = 0 && subdirs="$subdirs device/lib/pic16"
7654 test $OPT_DISABLE_XA51 = 0 && ac_config_files="$ac_config_files src/xa51/Makefile"
7657 if test $OPT_DISABLE_Z80 = 0; then
7658 ac_config_files="$ac_config_files src/z80/Makefile as/Makefile as/z80/Makefile as/link/Makefile as/link/z80/Makefile"
7660 test $OPT_DISABLE_DEVICE_LIB = 0 && ac_config_files="$ac_config_files device/lib/z80/Makefile device/lib/gbz80/Makefile"
7664 test $OPT_DISABLE_DEVICE_LIB = 0 && ac_config_files="$ac_config_files device/lib/Makefile"
7667 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"
7669 cat >confcache <<\_ACEOF
7670 # This file is a shell script that caches the results of configure
7671 # tests run on this system so they can be shared between configure
7672 # scripts and configure runs, see configure's option --config-cache.
7673 # It is not useful on other systems. If it contains results you don't
7674 # want to keep, you may remove or edit it.
7676 # config.status only pays attention to the cache file if you give it
7677 # the --recheck option to rerun configure.
7679 # `ac_cv_env_foo' variables (set or unset) will be overridden when
7680 # loading this file, other *unset* `ac_cv_foo' will be assigned the
7685 # The following way of writing the cache mishandles newlines in values,
7686 # but we know of no workaround that is simple, portable, and efficient.
7687 # So, we kill variables containing newlines.
7688 # Ultrix sh set writes to stderr and can't be redirected directly,
7689 # and sets the high bit in the cache file unless we assign to the vars.
7691 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
7692 eval ac_val=\$$ac_var
7696 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
7697 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
7700 _ | IFS | as_nl) ;; #(
7701 *) $as_unset $ac_var ;;
7707 case $as_nl`(ac_space=' '; set) 2>&1` in #(
7708 *${as_nl}ac_space=\ *)
7709 # `set' does not quote correctly, so add quotes (double-quote
7710 # substitution turns \\\\ into \\, and sed turns \\ into \).
7713 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
7716 # `set' quotes correctly as required by POSIX, so do not add quotes.
7717 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
7726 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
7728 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
7730 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
7731 if test -w "$cache_file"; then
7732 test "x$cache_file" != "x/dev/null" &&
7733 { echo "$as_me:$LINENO: updating cache $cache_file" >&5
7734 echo "$as_me: updating cache $cache_file" >&6;}
7735 cat confcache >$cache_file
7737 { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
7738 echo "$as_me: not updating unwritable cache $cache_file" >&6;}
7743 test "x$prefix" = xNONE && prefix=$ac_default_prefix
7744 # Let make expand exec_prefix.
7745 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
7747 DEFS=-DHAVE_CONFIG_H
7751 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
7752 # 1. Remove the extension, and $U if already installed.
7753 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
7754 ac_i=`echo "$ac_i" | sed "$ac_script"`
7755 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
7756 # will be set to the directory where LIBOBJS objects are built.
7757 ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
7758 ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
7762 LTLIBOBJS=$ac_ltlibobjs
7766 : ${CONFIG_STATUS=./config.status}
7767 ac_clean_files_save=$ac_clean_files
7768 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
7769 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
7770 echo "$as_me: creating $CONFIG_STATUS" >&6;}
7771 cat >$CONFIG_STATUS <<_ACEOF
7773 # Generated by $as_me.
7774 # Run this file to recreate the current configuration.
7775 # Compiler output produced by configure, useful for debugging
7776 # configure, is in config.log if it exists.
7781 SHELL=\${CONFIG_SHELL-$SHELL}
7784 cat >>$CONFIG_STATUS <<\_ACEOF
7785 ## --------------------- ##
7786 ## M4sh Initialization. ##
7787 ## --------------------- ##
7789 # Be more Bourne compatible
7790 DUALCASE=1; export DUALCASE # for MKS sh
7791 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
7794 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
7795 # is contrary to our usage. Disable this feature.
7796 alias -g '${1+"$@"}'='"$@"'
7797 setopt NO_GLOB_SUBST
7799 case `(set -o) 2>/dev/null` in
7800 *posix*) set -o posix ;;
7809 # Avoid depending upon Character Ranges.
7810 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
7811 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
7812 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
7813 as_cr_digits='0123456789'
7814 as_cr_alnum=$as_cr_Letters$as_cr_digits
7816 # The user is always right.
7817 if test "${PATH_SEPARATOR+set}" != set; then
7818 echo "#! /bin/sh" >conf$$.sh
7819 echo "exit 0" >>conf$$.sh
7821 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
7829 # Support unset when possible.
7830 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
7838 # We need space, tab and new line, in precisely that order. Quoting is
7839 # there to prevent editors from complaining about space-tab.
7840 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
7841 # splitting by setting IFS to empty value.)
7846 # Find who we are. Look in the path if we contain no directory separator.
7848 *[\\/]* ) as_myself=$0 ;;
7849 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7853 test -z "$as_dir" && as_dir=.
7854 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
7860 # We did not find ourselves, most probably we were run as `sh COMMAND'
7861 # in which case we are not to be found in the path.
7862 if test "x$as_myself" = x; then
7865 if test ! -f "$as_myself"; then
7866 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
7867 { (exit 1); exit 1; }
7870 # Work around bugs in pre-3.0 UWIN ksh.
7871 for as_var in ENV MAIL MAILPATH
7872 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
7880 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
7881 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
7882 LC_TELEPHONE LC_TIME
7884 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
7885 eval $as_var=C; export $as_var
7887 ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
7891 # Required to use basename.
7892 if expr a : '\(a\)' >/dev/null 2>&1 &&
7893 test "X`expr 00001 : '.*\(...\)'`" = X001; then
7899 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
7900 as_basename=basename
7906 # Name of the executable.
7907 as_me=`$as_basename -- "$0" ||
7908 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
7909 X"$0" : 'X\(//\)$' \| \
7910 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
7912 sed '/^.*\/\([^/][^/]*\)\/*$/{
7933 test "x$as_lineno_1" != "x$as_lineno_2" &&
7934 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
7936 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
7937 # uniformly replaced by the line number. The first 'sed' inserts a
7938 # line-number line after each line using $LINENO; the second 'sed'
7939 # does the real work. The second script uses 'N' to pair each
7940 # line-number line with the line containing $LINENO, and appends
7941 # trailing '-' during substitution so that $LINENO is not a special
7943 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
7944 # scripts with optimization help from Paolo Bonzini. Blame Lee
7945 # E. McMahon (1931-1989) for sed's syntax. :-)
7957 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
7961 chmod +x "$as_me.lineno" ||
7962 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
7963 { (exit 1); exit 1; }; }
7965 # Don't try to exec as it changes $[0], causing all sort of problems
7966 # (the dirname of $[0] is not the place where we might find the
7967 # original and so on. Autoconf is especially sensitive to this).
7969 # Exit status is that of the last command.
7974 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
7980 ECHO_C= ECHO_N= ECHO_T=
7983 case `echo 'x\c'` in
7984 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
7991 if expr a : '\(a\)' >/dev/null 2>&1 &&
7992 test "X`expr 00001 : '.*\(...\)'`" = X001; then
7998 rm -f conf$$ conf$$.exe conf$$.file
7999 if test -d conf$$.dir; then
8000 rm -f conf$$.dir/conf$$.file
8006 if ln -s conf$$.file conf$$ 2>/dev/null; then
8008 # ... but there are two gotchas:
8009 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
8010 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
8011 # In both cases, we have to default to `cp -p'.
8012 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
8014 elif ln conf$$.file conf$$ 2>/dev/null; then
8019 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
8020 rmdir conf$$.dir 2>/dev/null
8022 if mkdir -p . 2>/dev/null; then
8025 test -d ./-p && rmdir ./-p
8029 if test -x / >/dev/null 2>&1; then
8032 if ls -dL / >/dev/null 2>&1; then
8039 if test -d "$1"; then
8045 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
8046 ???[sx]*):;;*)false;;esac;fi
8050 as_executable_p=$as_test_x
8052 # Sed expression to map a string onto a valid CPP name.
8053 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
8055 # Sed expression to map a string onto a valid variable name.
8056 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
8061 # Save the log message, to keep $[0] and so on meaningful, and to
8062 # report actual input values of CONFIG_FILES etc. instead of their
8063 # values after options handling.
8065 This file was extended by sdcc $as_me 2.7.2, which was
8066 generated by GNU Autoconf 2.61. Invocation command line was
8068 CONFIG_FILES = $CONFIG_FILES
8069 CONFIG_HEADERS = $CONFIG_HEADERS
8070 CONFIG_LINKS = $CONFIG_LINKS
8071 CONFIG_COMMANDS = $CONFIG_COMMANDS
8074 on `(hostname || uname -n) 2>/dev/null | sed 1q`
8079 cat >>$CONFIG_STATUS <<_ACEOF
8080 # Files that config.status was made for.
8081 config_files="$ac_config_files"
8082 config_headers="$ac_config_headers"
8086 cat >>$CONFIG_STATUS <<\_ACEOF
8088 \`$as_me' instantiates files from templates according to the
8089 current configuration.
8091 Usage: $0 [OPTIONS] [FILE]...
8093 -h, --help print this help, then exit
8094 -V, --version print version number and configuration settings, then exit
8095 -q, --quiet do not print progress messages
8096 -d, --debug don't remove temporary files
8097 --recheck update $as_me by reconfiguring in the same conditions
8098 --file=FILE[:TEMPLATE]
8099 instantiate the configuration file FILE
8100 --header=FILE[:TEMPLATE]
8101 instantiate the configuration header FILE
8103 Configuration files:
8106 Configuration headers:
8109 Report bugs to <bug-autoconf@gnu.org>."
8112 cat >>$CONFIG_STATUS <<_ACEOF
8114 sdcc config.status 2.7.2
8115 configured by $0, generated by GNU Autoconf 2.61,
8116 with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
8118 Copyright (C) 2006 Free Software Foundation, Inc.
8119 This config.status script is free software; the Free Software Foundation
8120 gives unlimited permission to copy, distribute and modify it."
8127 cat >>$CONFIG_STATUS <<\_ACEOF
8128 # If no file are specified by the user, then we need to provide default
8129 # value. By we need to know if files were specified by the user.
8135 ac_option=`expr "X$1" : 'X\([^=]*\)='`
8136 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
8147 # Handling of the options.
8148 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
8150 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
8151 echo "$ac_cs_version"; exit ;;
8152 --debug | --debu | --deb | --de | --d | -d )
8154 --file | --fil | --fi | --f )
8156 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
8157 ac_need_defaults=false;;
8158 --header | --heade | --head | --hea )
8160 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
8161 ac_need_defaults=false;;
8163 # Conflict between --help and --header
8164 { echo "$as_me: error: ambiguous option: $1
8165 Try \`$0 --help' for more information." >&2
8166 { (exit 1); exit 1; }; };;
8167 --help | --hel | -h )
8168 echo "$ac_cs_usage"; exit ;;
8169 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
8170 | -silent | --silent | --silen | --sile | --sil | --si | --s)
8174 -*) { echo "$as_me: error: unrecognized option: $1
8175 Try \`$0 --help' for more information." >&2
8176 { (exit 1); exit 1; }; } ;;
8178 *) ac_config_targets="$ac_config_targets $1"
8179 ac_need_defaults=false ;;
8185 ac_configure_extra_args=
8187 if $ac_cs_silent; then
8189 ac_configure_extra_args="$ac_configure_extra_args --silent"
8193 cat >>$CONFIG_STATUS <<_ACEOF
8194 if \$ac_cs_recheck; then
8195 echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
8198 exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
8202 cat >>$CONFIG_STATUS <<\_ACEOF
8206 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
8207 ## Running $as_me. ##
8213 cat >>$CONFIG_STATUS <<_ACEOF
8216 cat >>$CONFIG_STATUS <<\_ACEOF
8218 # Handling of arguments.
8219 for ac_config_target in $ac_config_targets
8221 case $ac_config_target in
8222 "sdccconf.h") CONFIG_HEADERS="$CONFIG_HEADERS sdccconf.h:sdccconf_in.h" ;;
8223 "doc/Makefile") CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;;
8224 "src/avr/Makefile") CONFIG_FILES="$CONFIG_FILES src/avr/Makefile" ;;
8225 "src/ds390/Makefile") CONFIG_FILES="$CONFIG_FILES src/ds390/Makefile" ;;
8226 "device/lib/ds390/Makefile") CONFIG_FILES="$CONFIG_FILES device/lib/ds390/Makefile" ;;
8227 "src/ds400/Makefile") CONFIG_FILES="$CONFIG_FILES src/ds400/Makefile" ;;
8228 "device/lib/ds400/Makefile") CONFIG_FILES="$CONFIG_FILES device/lib/ds400/Makefile" ;;
8229 "src/hc08/Makefile") CONFIG_FILES="$CONFIG_FILES src/hc08/Makefile" ;;
8230 "as/hc08/Makefile") CONFIG_FILES="$CONFIG_FILES as/hc08/Makefile" ;;
8231 "as/link/hc08/Makefile") CONFIG_FILES="$CONFIG_FILES as/link/hc08/Makefile" ;;
8232 "device/lib/hc08/Makefile") CONFIG_FILES="$CONFIG_FILES device/lib/hc08/Makefile" ;;
8233 "src/mcs51/Makefile") CONFIG_FILES="$CONFIG_FILES src/mcs51/Makefile" ;;
8234 "as/mcs51/Makefile") CONFIG_FILES="$CONFIG_FILES as/mcs51/Makefile" ;;
8235 "as/link/mcs51/Makefile") CONFIG_FILES="$CONFIG_FILES as/link/mcs51/Makefile" ;;
8236 "device/lib/mcs51/Makefile") CONFIG_FILES="$CONFIG_FILES device/lib/mcs51/Makefile" ;;
8237 "device/lib/small/Makefile") CONFIG_FILES="$CONFIG_FILES device/lib/small/Makefile" ;;
8238 "device/lib/medium/Makefile") CONFIG_FILES="$CONFIG_FILES device/lib/medium/Makefile" ;;
8239 "device/lib/large/Makefile") CONFIG_FILES="$CONFIG_FILES device/lib/large/Makefile" ;;
8240 "src/pic/Makefile") CONFIG_FILES="$CONFIG_FILES src/pic/Makefile" ;;
8241 "src/pic16/Makefile") CONFIG_FILES="$CONFIG_FILES src/pic16/Makefile" ;;
8242 "src/xa51/Makefile") CONFIG_FILES="$CONFIG_FILES src/xa51/Makefile" ;;
8243 "src/z80/Makefile") CONFIG_FILES="$CONFIG_FILES src/z80/Makefile" ;;
8244 "as/Makefile") CONFIG_FILES="$CONFIG_FILES as/Makefile" ;;
8245 "as/z80/Makefile") CONFIG_FILES="$CONFIG_FILES as/z80/Makefile" ;;
8246 "as/link/Makefile") CONFIG_FILES="$CONFIG_FILES as/link/Makefile" ;;
8247 "as/link/z80/Makefile") CONFIG_FILES="$CONFIG_FILES as/link/z80/Makefile" ;;
8248 "device/lib/z80/Makefile") CONFIG_FILES="$CONFIG_FILES device/lib/z80/Makefile" ;;
8249 "device/lib/gbz80/Makefile") CONFIG_FILES="$CONFIG_FILES device/lib/gbz80/Makefile" ;;
8250 "device/lib/Makefile") CONFIG_FILES="$CONFIG_FILES device/lib/Makefile" ;;
8251 "main.mk") CONFIG_FILES="$CONFIG_FILES main.mk:main_in.mk" ;;
8252 "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
8253 "device/include/Makefile") CONFIG_FILES="$CONFIG_FILES device/include/Makefile" ;;
8254 "support/librarian/Makefile") CONFIG_FILES="$CONFIG_FILES support/librarian/Makefile" ;;
8255 "support/makebin/Makefile") CONFIG_FILES="$CONFIG_FILES support/makebin/Makefile" ;;
8256 "support/regression/Makefile") CONFIG_FILES="$CONFIG_FILES support/regression/Makefile" ;;
8257 "support/valdiag/Makefile") CONFIG_FILES="$CONFIG_FILES support/valdiag/Makefile" ;;
8258 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
8259 "Makefile.common") CONFIG_FILES="$CONFIG_FILES Makefile.common:Makefile.common.in" ;;
8261 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
8262 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
8263 { (exit 1); exit 1; }; };;
8268 # If the user did not use the arguments to specify the items to instantiate,
8269 # then the envvar interface is used. Set only those that are not.
8270 # We use the long form for the default assignment because of an extremely
8271 # bizarre bug on SunOS 4.1.3.
8272 if $ac_need_defaults; then
8273 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
8274 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
8277 # Have a temporary directory for convenience. Make it in the build tree
8278 # simply because there is no reason against having it here, and in addition,
8279 # creating and moving files from /tmp can sometimes cause problems.
8280 # Hook for its removal unless debugging.
8281 # Note that there is a small window in which the directory will not be cleaned:
8282 # after its creation but before its name has been assigned to `$tmp'.
8286 trap 'exit_status=$?
8287 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
8289 trap '{ (exit 1); exit 1; }' 1 2 13 15
8291 # Create a (secure) tmp directory for tmp files.
8294 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
8295 test -n "$tmp" && test -d "$tmp"
8298 tmp=./conf$$-$RANDOM
8299 (umask 077 && mkdir "$tmp")
8302 echo "$me: cannot create a temporary directory in ." >&2
8303 { (exit 1); exit 1; }
8307 # Set up the sed scripts for CONFIG_FILES section.
8310 # No need to generate the scripts if there are no CONFIG_FILES.
8311 # This happens for instance when ./config.status config.h
8312 if test -n "$CONFIG_FILES"; then
8319 for ac_last_try in false false false false false :; do
8320 cat >conf$$subs.sed <<_ACEOF
8321 SHELL!$SHELL$ac_delim
8322 PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
8323 PACKAGE_NAME!$PACKAGE_NAME$ac_delim
8324 PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
8325 PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
8326 PACKAGE_STRING!$PACKAGE_STRING$ac_delim
8327 PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
8328 exec_prefix!$exec_prefix$ac_delim
8329 prefix!$prefix$ac_delim
8330 program_transform_name!$program_transform_name$ac_delim
8331 bindir!$bindir$ac_delim
8332 sbindir!$sbindir$ac_delim
8333 libexecdir!$libexecdir$ac_delim
8334 datarootdir!$datarootdir$ac_delim
8335 datadir!$datadir$ac_delim
8336 sysconfdir!$sysconfdir$ac_delim
8337 sharedstatedir!$sharedstatedir$ac_delim
8338 localstatedir!$localstatedir$ac_delim
8339 includedir!$includedir$ac_delim
8340 oldincludedir!$oldincludedir$ac_delim
8341 docdir!$docdir$ac_delim
8342 infodir!$infodir$ac_delim
8343 htmldir!$htmldir$ac_delim
8344 dvidir!$dvidir$ac_delim
8345 pdfdir!$pdfdir$ac_delim
8346 psdir!$psdir$ac_delim
8347 libdir!$libdir$ac_delim
8348 localedir!$localedir$ac_delim
8349 mandir!$mandir$ac_delim
8351 ECHO_C!$ECHO_C$ac_delim
8352 ECHO_N!$ECHO_N$ac_delim
8353 ECHO_T!$ECHO_T$ac_delim
8355 build_alias!$build_alias$ac_delim
8356 host_alias!$host_alias$ac_delim
8357 target_alias!$target_alias$ac_delim
8359 VERSION!$VERSION$ac_delim
8360 VERSIONHI!$VERSIONHI$ac_delim
8361 VERSIONLO!$VERSIONLO$ac_delim
8362 VERSIONP!$VERSIONP$ac_delim
8364 CFLAGS!$CFLAGS$ac_delim
8365 LDFLAGS!$LDFLAGS$ac_delim
8366 CPPFLAGS!$CPPFLAGS$ac_delim
8367 ac_ct_CC!$ac_ct_CC$ac_delim
8368 EXEEXT!$EXEEXT$ac_delim
8369 OBJEXT!$OBJEXT$ac_delim
8371 INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim
8372 INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim
8373 INSTALL_DATA!$INSTALL_DATA$ac_delim
8374 RANLIB!$RANLIB$ac_delim
8375 AUTOCONF!$AUTOCONF$ac_delim
8376 STRIP!$STRIP$ac_delim
8381 M_OR_MM!$M_OR_MM$ac_delim
8383 EGREP!$EGREP$ac_delim
8384 sdccconf_h_dir_separator!$sdccconf_h_dir_separator$ac_delim
8385 include_dir_suffix!$include_dir_suffix$ac_delim
8386 lib_dir_suffix!$lib_dir_suffix$ac_delim
8387 OPT_DISABLE_MCS51!$OPT_DISABLE_MCS51$ac_delim
8388 OPT_DISABLE_GBZ80!$OPT_DISABLE_GBZ80$ac_delim
8389 OPT_DISABLE_Z80!$OPT_DISABLE_Z80$ac_delim
8390 OPT_DISABLE_AVR!$OPT_DISABLE_AVR$ac_delim
8391 OPT_DISABLE_DS390!$OPT_DISABLE_DS390$ac_delim
8392 OPT_DISABLE_DS400!$OPT_DISABLE_DS400$ac_delim
8393 OPT_DISABLE_PIC!$OPT_DISABLE_PIC$ac_delim
8394 OPT_DISABLE_PIC16!$OPT_DISABLE_PIC16$ac_delim
8395 OPT_DISABLE_XA51!$OPT_DISABLE_XA51$ac_delim
8396 OPT_DISABLE_HC08!$OPT_DISABLE_HC08$ac_delim
8397 OPT_DISABLE_UCSIM!$OPT_DISABLE_UCSIM$ac_delim
8398 OPT_DISABLE_DEVICE_LIB!$OPT_DISABLE_DEVICE_LIB$ac_delim
8399 OPT_DISABLE_PACKIHX!$OPT_DISABLE_PACKIHX$ac_delim
8400 OPT_DISABLE_SDCPP!$OPT_DISABLE_SDCPP$ac_delim
8401 OPT_DISABLE_SDCDB!$OPT_DISABLE_SDCDB$ac_delim
8402 OPT_ENABLE_DOC!$OPT_ENABLE_DOC$ac_delim
8404 LATEX2HTML!$LATEX2HTML$ac_delim
8405 PDFLATEX!$PDFLATEX$ac_delim
8406 PDFOPT!$PDFOPT$ac_delim
8407 MAKEINDEX!$MAKEINDEX$ac_delim
8408 OPT_ENABLE_LIBGC!$OPT_ENABLE_LIBGC$ac_delim
8409 subdirs!$subdirs$ac_delim
8410 LIBOBJS!$LIBOBJS$ac_delim
8411 LTLIBOBJS!$LTLIBOBJS$ac_delim
8414 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 91; then
8416 elif $ac_last_try; then
8417 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
8418 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
8419 { (exit 1); exit 1; }; }
8421 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
8425 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
8426 if test -n "$ac_eof"; then
8427 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
8428 ac_eof=`expr $ac_eof + 1`
8431 cat >>$CONFIG_STATUS <<_ACEOF
8432 cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
8433 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
8436 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
8437 s/^/s,@/; s/!/@,|#_!!_#|/
8440 s/'"$ac_delim"'$/,g/; t
8442 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
8443 ' >>$CONFIG_STATUS <conf$$subs.sed
8444 rm -f conf$$subs.sed
8445 cat >>$CONFIG_STATUS <<_ACEOF
8452 # VPATH may cause trouble with some makes, so we remove $(srcdir),
8453 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
8454 # trailing colons and then remove the whole line if VPATH becomes empty
8455 # (actually we leave an empty line to preserve line numbers).
8456 if test "x$srcdir" = x.; then
8457 ac_vpsub='/^[ ]*VPATH[ ]*=/{
8461 s/^\([^=]*=[ ]*\):*/\1/
8467 cat >>$CONFIG_STATUS <<\_ACEOF
8468 fi # test -n "$CONFIG_FILES"
8471 for ac_tag in :F $CONFIG_FILES :H $CONFIG_HEADERS
8474 :[FHLC]) ac_mode=$ac_tag; continue;;
8476 case $ac_mode$ac_tag in
8478 :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
8479 echo "$as_me: error: Invalid tag $ac_tag." >&2;}
8480 { (exit 1); exit 1; }; };;
8481 :[FH]-) ac_tag=-:-;;
8482 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
8499 -) ac_f="$tmp/stdin";;
8500 *) # Look for the file first in the build tree, then in the source tree
8501 # (if the path is not absolute). The absolute path cannot be DOS-style,
8502 # because $ac_f cannot contain `:'.
8506 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
8508 { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
8509 echo "$as_me: error: cannot find input file: $ac_f" >&2;}
8510 { (exit 1); exit 1; }; };;
8512 ac_file_inputs="$ac_file_inputs $ac_f"
8515 # Let's still pretend it is `configure' which instantiates (i.e., don't
8516 # use $as_me), people would be surprised to read:
8517 # /* config.h. Generated by config.status. */
8518 configure_input="Generated from "`IFS=:
8519 echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
8520 if test x"$ac_file" != x-; then
8521 configure_input="$ac_file. $configure_input"
8522 { echo "$as_me:$LINENO: creating $ac_file" >&5
8523 echo "$as_me: creating $ac_file" >&6;}
8527 *:-:* | *:-) cat >"$tmp/stdin";;
8532 ac_dir=`$as_dirname -- "$ac_file" ||
8533 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
8534 X"$ac_file" : 'X\(//\)[^/]' \| \
8535 X"$ac_file" : 'X\(//\)$' \| \
8536 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
8538 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
8557 -*) as_dir=./$as_dir;;
8559 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
8563 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
8564 *) as_qdir=$as_dir;;
8566 as_dirs="'$as_qdir' $as_dirs"
8567 as_dir=`$as_dirname -- "$as_dir" ||
8568 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
8569 X"$as_dir" : 'X\(//\)[^/]' \| \
8570 X"$as_dir" : 'X\(//\)$' \| \
8571 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
8573 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
8590 test -d "$as_dir" && break
8592 test -z "$as_dirs" || eval "mkdir $as_dirs"
8593 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
8594 echo "$as_me: error: cannot create directory $as_dir" >&2;}
8595 { (exit 1); exit 1; }; }; }
8599 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
8601 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
8602 # A ".." for each directory in $ac_dir_suffix.
8603 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
8604 case $ac_top_builddir_sub in
8605 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
8606 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
8609 ac_abs_top_builddir=$ac_pwd
8610 ac_abs_builddir=$ac_pwd$ac_dir_suffix
8611 # for backward compatibility:
8612 ac_top_builddir=$ac_top_build_prefix
8615 .) # We are building in place.
8617 ac_top_srcdir=$ac_top_builddir_sub
8618 ac_abs_top_srcdir=$ac_pwd ;;
8619 [\\/]* | ?:[\\/]* ) # Absolute name.
8620 ac_srcdir=$srcdir$ac_dir_suffix;
8621 ac_top_srcdir=$srcdir
8622 ac_abs_top_srcdir=$srcdir ;;
8624 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
8625 ac_top_srcdir=$ac_top_build_prefix$srcdir
8626 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
8628 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
8638 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
8639 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
8643 cat >>$CONFIG_STATUS <<\_ACEOF
8644 # If the template does not know about datarootdir, expand it.
8645 # FIXME: This hack should be removed a few years after 2.60.
8646 ac_datarootdir_hack=; ac_datarootdir_seen=
8648 case `sed -n '/datarootdir/ {
8657 ' $ac_file_inputs` in
8658 *datarootdir*) ac_datarootdir_seen=yes;;
8659 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
8660 { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
8661 echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
8663 cat >>$CONFIG_STATUS <<_ACEOF
8664 ac_datarootdir_hack='
8665 s&@datadir@&$datadir&g
8666 s&@docdir@&$docdir&g
8667 s&@infodir@&$infodir&g
8668 s&@localedir@&$localedir&g
8669 s&@mandir@&$mandir&g
8670 s&\\\${datarootdir}&$datarootdir&g' ;;
8674 # Neutralize VPATH when `$srcdir' = `.'.
8675 # Shell code in configure.ac might set extrasub.
8676 # FIXME: do we really want to maintain this feature?
8677 cat >>$CONFIG_STATUS <<_ACEOF
8681 cat >>$CONFIG_STATUS <<\_ACEOF
8683 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
8684 s&@configure_input@&$configure_input&;t t
8685 s&@top_builddir@&$ac_top_builddir_sub&;t t
8686 s&@srcdir@&$ac_srcdir&;t t
8687 s&@abs_srcdir@&$ac_abs_srcdir&;t t
8688 s&@top_srcdir@&$ac_top_srcdir&;t t
8689 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
8690 s&@builddir@&$ac_builddir&;t t
8691 s&@abs_builddir@&$ac_abs_builddir&;t t
8692 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
8693 s&@INSTALL@&$ac_INSTALL&;t t
8694 $ac_datarootdir_hack
8695 " $ac_file_inputs | sed -f "$tmp/subs-1.sed" >$tmp/out
8697 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
8698 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
8699 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
8700 { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
8701 which seems to be undefined. Please make sure it is defined." >&5
8702 echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
8703 which seems to be undefined. Please make sure it is defined." >&2;}
8707 -) cat "$tmp/out"; rm -f "$tmp/out";;
8708 *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
8717 # Transform confdefs.h into a sed script `conftest.defines', that
8718 # substitutes the proper values into config.h.in to produce config.h.
8719 rm -f conftest.defines conftest.tail
8720 # First, append a space to every undef/define line, to ease matching.
8721 echo 's/$/ /' >conftest.defines
8722 # Then, protect against being on the right side of a sed subst, or in
8723 # an unquoted here document, in config.status. If some macros were
8724 # called several times there might be several #defines for the same
8725 # symbol, which is useless. But do not sort them, since the last
8726 # AC_DEFINE must be honored.
8727 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
8728 # These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where
8729 # NAME is the cpp macro being defined, VALUE is the value it is being given.
8730 # PARAMS is the parameter list in the macro definition--in most cases, it's
8731 # just an empty string.
8732 ac_dA='s,^\\([ #]*\\)[^ ]*\\([ ]*'
8733 ac_dB='\\)[ (].*,\\1define\\2'
8741 s/^[ ]*#[ ]*define[ ][ ]*//
8746 s/^\('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p
8747 s/^\('"$ac_word_re"'\)[ ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p
8748 ' >>conftest.defines
8750 # Remove the space that was appended to ease matching.
8751 # Then replace #undef with comments. This is necessary, for
8752 # example, in the case of _POSIX_SOURCE, which is predefined and required
8753 # on some systems where configure will not decide to define it.
8754 # (The regexp can be short, since the line contains either #define or #undef.)
8756 s,^[ #]*u.*,/* & */,' >>conftest.defines
8758 # Break up conftest.defines:
8761 # First sed command is: sed -f defines.sed $ac_file_inputs >"$tmp/out1"
8762 # Second one is: sed -f defines.sed "$tmp/out1" >"$tmp/out2"
8763 # Third one will be: sed -f defines.sed "$tmp/out2" >"$tmp/out1"
8765 ac_in='$ac_file_inputs'
8766 ac_out='"$tmp/out1"'
8767 ac_nxt='"$tmp/out2"'
8771 # Write a here document:
8772 cat >>$CONFIG_STATUS <<_ACEOF
8773 # First, check the format of the line:
8774 cat >"\$tmp/defines.sed" <<\\CEOF
8775 /^[ ]*#[ ]*undef[ ][ ]*$ac_word_re[ ]*\$/b def
8776 /^[ ]*#[ ]*define[ ][ ]*$ac_word_re[( ]/b def
8780 sed ${ac_max_sed_lines}q conftest.defines >>$CONFIG_STATUS
8782 sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS
8783 ac_in=$ac_out; ac_out=$ac_nxt; ac_nxt=$ac_in
8784 sed 1,${ac_max_sed_lines}d conftest.defines >conftest.tail
8785 grep . conftest.tail >/dev/null || break
8786 rm -f conftest.defines
8787 mv conftest.tail conftest.defines
8789 rm -f conftest.defines conftest.tail
8791 echo "ac_result=$ac_in" >>$CONFIG_STATUS
8792 cat >>$CONFIG_STATUS <<\_ACEOF
8793 if test x"$ac_file" != x-; then
8794 echo "/* $configure_input */" >"$tmp/config.h"
8795 cat "$ac_result" >>"$tmp/config.h"
8796 if diff $ac_file "$tmp/config.h" >/dev/null 2>&1; then
8797 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
8798 echo "$as_me: $ac_file is unchanged" >&6;}
8801 mv "$tmp/config.h" $ac_file
8804 echo "/* $configure_input */"
8816 { (exit 0); exit 0; }
8818 chmod +x $CONFIG_STATUS
8819 ac_clean_files=$ac_clean_files_save
8822 # configure is writing to config.log, and then calls config.status.
8823 # config.status does its own redirection, appending to config.log.
8824 # Unfortunately, on DOS this fails, as config.log is still kept open
8825 # by configure, so config.status won't be able to write to it; its
8826 # output is simply discarded. So we exec the FD to /dev/null,
8827 # effectively closing config.log, so it can be properly (re)opened and
8828 # appended to by config.status. When coming back to configure, we
8829 # need to make the FD available again.
8830 if test "$no_create" != yes; then
8832 ac_config_status_args=
8833 test "$silent" = yes &&
8834 ac_config_status_args="$ac_config_status_args --quiet"
8836 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
8838 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
8839 # would make configure fail if this is the last instruction.
8840 $ac_cs_success || { (exit 1); exit 1; }
8844 # CONFIG_SUBDIRS section.
8846 if test "$no_recursion" != yes; then
8848 # Remove --cache-file and --srcdir arguments so they do not pile up.
8849 ac_sub_configure_args=
8851 eval "set x $ac_configure_args"
8855 if test -n "$ac_prev"; then
8860 -cache-file | --cache-file | --cache-fil | --cache-fi \
8861 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
8862 ac_prev=cache_file ;;
8863 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
8864 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \
8867 --config-cache | -C)
8869 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
8871 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
8873 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
8875 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
8879 *\'*) ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
8881 ac_sub_configure_args="$ac_sub_configure_args '$ac_arg'" ;;
8885 # Always prepend --prefix to ensure using the same prefix
8886 # in subdir configurations.
8887 ac_arg="--prefix=$prefix"
8889 *\'*) ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
8891 ac_sub_configure_args="'$ac_arg' $ac_sub_configure_args"
8894 if test "$silent" = yes; then
8895 ac_sub_configure_args="--silent $ac_sub_configure_args"
8899 for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue
8901 # Do not complain, so a configure script can configure whichever
8902 # parts of a large source tree are present.
8903 test -d "$srcdir/$ac_dir" || continue
8905 ac_msg="=== configuring in $ac_dir (`pwd`/$ac_dir)"
8906 echo "$as_me:$LINENO: $ac_msg" >&5
8910 -*) as_dir=./$as_dir;;
8912 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
8916 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
8917 *) as_qdir=$as_dir;;
8919 as_dirs="'$as_qdir' $as_dirs"
8920 as_dir=`$as_dirname -- "$as_dir" ||
8921 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
8922 X"$as_dir" : 'X\(//\)[^/]' \| \
8923 X"$as_dir" : 'X\(//\)$' \| \
8924 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
8926 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
8943 test -d "$as_dir" && break
8945 test -z "$as_dirs" || eval "mkdir $as_dirs"
8946 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
8947 echo "$as_me: error: cannot create directory $as_dir" >&2;}
8948 { (exit 1); exit 1; }; }; }
8952 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
8954 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
8955 # A ".." for each directory in $ac_dir_suffix.
8956 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
8957 case $ac_top_builddir_sub in
8958 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
8959 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
8962 ac_abs_top_builddir=$ac_pwd
8963 ac_abs_builddir=$ac_pwd$ac_dir_suffix
8964 # for backward compatibility:
8965 ac_top_builddir=$ac_top_build_prefix
8968 .) # We are building in place.
8970 ac_top_srcdir=$ac_top_builddir_sub
8971 ac_abs_top_srcdir=$ac_pwd ;;
8972 [\\/]* | ?:[\\/]* ) # Absolute name.
8973 ac_srcdir=$srcdir$ac_dir_suffix;
8974 ac_top_srcdir=$srcdir
8975 ac_abs_top_srcdir=$srcdir ;;
8977 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
8978 ac_top_srcdir=$ac_top_build_prefix$srcdir
8979 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
8981 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
8986 # Check for guested configure; otherwise get Cygnus style configure.
8987 if test -f "$ac_srcdir/configure.gnu"; then
8988 ac_sub_configure=$ac_srcdir/configure.gnu
8989 elif test -f "$ac_srcdir/configure"; then
8990 ac_sub_configure=$ac_srcdir/configure
8991 elif test -f "$ac_srcdir/configure.in"; then
8992 # This should be Cygnus configure.
8993 ac_sub_configure=$ac_aux_dir/configure
8995 { echo "$as_me:$LINENO: WARNING: no configuration information is in $ac_dir" >&5
8996 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;}
9000 # The recursion is here.
9001 if test -n "$ac_sub_configure"; then
9002 # Make the cache file name correct relative to the subdirectory.
9004 [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;;
9006 ac_sub_cache_file=$ac_top_build_prefix$cache_file ;;
9009 { echo "$as_me:$LINENO: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&5
9010 echo "$as_me: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;}
9011 # The eval makes quoting arguments work.
9012 eval "\$SHELL \"\$ac_sub_configure\" $ac_sub_configure_args \
9013 --cache-file=\"\$ac_sub_cache_file\" --srcdir=\"\$ac_srcdir\"" ||
9014 { { echo "$as_me:$LINENO: error: $ac_sub_configure failed for $ac_dir" >&5
9015 echo "$as_me: error: $ac_sub_configure failed for $ac_dir" >&2;}
9016 { (exit 1); exit 1; }; }
9024 # I found no better place
9027 # Prepare result message
9028 # ======================
9030 # In the C-header we need \\ as dir-separator, but in the message only \
9031 dirch=${sdccconf_h_dir_separator}
9032 test ${dirch} = '\\' && dirch='\'
9034 # calc friendly strings
9036 binPath=`echo "/${prefix2bin_dir}" | sed 's,/\./,/,g'`
9037 case ":$binPath:" in
9039 :*[\\/]:) binPath=`echo "$binPath" | sed 's,[\\/]*$,,'` ;;
9044 *\\*) binPath=`echo "$binPath" | sed 's,\(.\)[\\/][\\/]*,\1\\\\\\\\,g
9045 s,^[\\/],\\\\\\\\,'` ;;
9047 *) binPath=`echo "$binPath" | sed 's,\(.\)[\\/][\\/]*,\1/,g'` ;;
9049 binPath=`echo "$binPath" | sed 's,\\\\\\\\,\\\\,g'`
9052 incPath1=`echo "/${prefix2data_dir}/${norm_inc_dir_suffix}" | sed 's,/\./,/,g'`
9053 case ":$incPath1:" in
9055 :*[\\/]:) incPath1=`echo "$incPath1" | sed 's,[\\/]*$,,'` ;;
9060 *\\*) incPath1=`echo "$incPath1" | sed 's,\(.\)[\\/][\\/]*,\1\\\\\\\\,g
9061 s,^[\\/],\\\\\\\\,'` ;;
9063 *) incPath1=`echo "$incPath1" | sed 's,\(.\)[\\/][\\/]*,\1/,g'` ;;
9065 incPath1=`echo "$incPath1" | sed 's,\\\\\\\\,\\\\,g'`
9068 incPath2=`echo "/${bin2data_dir}/${norm_inc_dir_suffix}" | sed 's,/\./,/,g'`
9069 case ":$incPath2:" in
9071 :*[\\/]:) incPath2=`echo "$incPath2" | sed 's,[\\/]*$,,'` ;;
9076 *\\*) incPath2=`echo "$incPath2" | sed 's,\(.\)[\\/][\\/]*,\1\\\\\\\\,g
9077 s,^[\\/],\\\\\\\\,'` ;;
9079 *) incPath2=`echo "$incPath2" | sed 's,\(.\)[\\/][\\/]*,\1/,g'` ;;
9081 incPath2=`echo "$incPath2" | sed 's,\\\\\\\\,\\\\,g'`
9084 incPath3=`echo "${expanded_datadir}/${norm_inc_dir_suffix}" | sed 's,/\./,/,g'`
9085 case ":$incPath3:" in
9087 :*[\\/]:) incPath3=`echo "$incPath3" | sed 's,[\\/]*$,,'` ;;
9092 *\\*) incPath3=`echo "$incPath3" | sed 's,\(.\)[\\/][\\/]*,\1\\\\\\\\,g
9093 s,^[\\/],\\\\\\\\,'` ;;
9095 *) incPath3=`echo "$incPath3" | sed 's,\(.\)[\\/][\\/]*,\1/,g'` ;;
9097 incPath3=`echo "$incPath3" | sed 's,\\\\\\\\,\\\\,g'`
9100 libPath1=`echo "/${prefix2data_dir}/${norm_lib_dir_suffix}" | sed 's,/\./,/,g'`
9101 case ":$libPath1:" in
9103 :*[\\/]:) libPath1=`echo "$libPath1" | sed 's,[\\/]*$,,'` ;;
9108 *\\*) libPath1=`echo "$libPath1" | sed 's,\(.\)[\\/][\\/]*,\1\\\\\\\\,g
9109 s,^[\\/],\\\\\\\\,'` ;;
9111 *) libPath1=`echo "$libPath1" | sed 's,\(.\)[\\/][\\/]*,\1/,g'` ;;
9113 libPath1=`echo "$libPath1" | sed 's,\\\\\\\\,\\\\,g'`
9116 libPath2=`echo "/${bin2data_dir}/${norm_lib_dir_suffix}" | sed 's,/\./,/,g'`
9117 case ":$libPath2:" in
9119 :*[\\/]:) libPath2=`echo "$libPath2" | sed 's,[\\/]*$,,'` ;;
9124 *\\*) libPath2=`echo "$libPath2" | sed 's,\(.\)[\\/][\\/]*,\1\\\\\\\\,g
9125 s,^[\\/],\\\\\\\\,'` ;;
9127 *) libPath2=`echo "$libPath2" | sed 's,\(.\)[\\/][\\/]*,\1/,g'` ;;
9129 libPath2=`echo "$libPath2" | sed 's,\\\\\\\\,\\\\,g'`
9132 libPath3=`echo "${expanded_datadir}/${norm_lib_dir_suffix}" | sed 's,/\./,/,g'`
9133 case ":$libPath3:" in
9135 :*[\\/]:) libPath3=`echo "$libPath3" | sed 's,[\\/]*$,,'` ;;
9140 *\\*) libPath3=`echo "$libPath3" | sed 's,\(.\)[\\/][\\/]*,\1\\\\\\\\,g
9141 s,^[\\/],\\\\\\\\,'` ;;
9143 *) libPath3=`echo "$libPath3" | sed 's,\(.\)[\\/][\\/]*,\1/,g'` ;;
9145 libPath3=`echo "$libPath3" | sed 's,\\\\\\\\,\\\\,g'`
9148 { echo "$as_me:$LINENO: result:
9149 sdcc ${VERSION} is now configured for
9151 Build: ${build_alias}
9153 Source directory: ${srcdir}
9158 avr ${enable_avr_port}
9159 ds390 ${enable_ds390_port}
9160 ds400 ${enable_ds400_port}
9161 gbz80 ${enable_gbz80_port}
9162 hc08 ${enable_hc08_port}
9163 mcs51 ${enable_mcs51_port}
9164 pic ${enable_pic_port}
9165 pic16 ${enable_pic16_port}
9166 xa51 ${enable_xa51_port}
9167 z80 ${enable_z80_port}
9169 Disable packihx: ${OPT_DISABLE_PACKIHX}
9170 Disable ucsim: ${OPT_DISABLE_UCSIM}
9171 Disable device lib: ${OPT_DISABLE_DEVICE_LIB}
9172 Disable sdcpp: ${OPT_DISABLE_SDCPP}
9173 Disable sdcdb: ${OPT_DISABLE_SDCDB}
9174 Enable documentation: ${OPT_ENABLE_DOC}
9175 Enable libgc: ${OPT_ENABLE_LIBGC}
9178 binary files: ${exec_prefix}
9179 include files: ${datadir}/${include_dir_suffix}
9180 library files: ${datadir}/${lib_dir_suffix}
9181 documentation: ${docdir}
9185 datarootdir: ${datarootdir}
9187 Search paths (incomplete, see manual for all search paths):
9188 binary files: \$SDCC_HOME${binPath}
9189 include files: ${incPath1}
9190 path(argv[0])${incPath2}
9192 library files: \$SDCC_HOME${libPath1}${dirch}<model>
9193 path(argv[0])${libPath2}${dirch}<model>
9194 ${libPath3}${dirch}<model>
9197 sdcc ${VERSION} is now configured for
9199 Build: ${build_alias}
9201 Source directory: ${srcdir}
9206 avr ${enable_avr_port}
9207 ds390 ${enable_ds390_port}
9208 ds400 ${enable_ds400_port}
9209 gbz80 ${enable_gbz80_port}
9210 hc08 ${enable_hc08_port}
9211 mcs51 ${enable_mcs51_port}
9212 pic ${enable_pic_port}
9213 pic16 ${enable_pic16_port}
9214 xa51 ${enable_xa51_port}
9215 z80 ${enable_z80_port}
9217 Disable packihx: ${OPT_DISABLE_PACKIHX}
9218 Disable ucsim: ${OPT_DISABLE_UCSIM}
9219 Disable device lib: ${OPT_DISABLE_DEVICE_LIB}
9220 Disable sdcpp: ${OPT_DISABLE_SDCPP}
9221 Disable sdcdb: ${OPT_DISABLE_SDCDB}
9222 Enable documentation: ${OPT_ENABLE_DOC}
9223 Enable libgc: ${OPT_ENABLE_LIBGC}
9226 binary files: ${exec_prefix}
9227 include files: ${datadir}/${include_dir_suffix}
9228 library files: ${datadir}/${lib_dir_suffix}
9229 documentation: ${docdir}
9233 datarootdir: ${datarootdir}
9235 Search paths (incomplete, see manual for all search paths):
9236 binary files: \$SDCC_HOME${binPath}
9237 include files: ${incPath1}
9238 path(argv[0])${incPath2}
9240 library files: \$SDCC_HOME${libPath1}${dirch}<model>
9241 path(argv[0])${libPath2}${dirch}<model>
9242 ${libPath3}${dirch}<model>
9244 # End of configure/configure.in