| |
|
| GCC_LD="\$(GCC)" |
GCC_LD="\$(GCC)" |
| EC_MODE="false" |
EC_MODE="false" |
| |
NO_EC="" |
| EC="" |
EC="" |
| engine2='engine2$(OPT).o' |
engine2='engine2$(OPT).o' |
| engine_fast2='engine-fast2$(OPT).o' |
engine_fast2='engine-fast2$(OPT).o' |
| image_i="" |
image_i="" |
| signals_o="io.o signals.o" |
signals_o="io.o signals.o" |
| |
|
| |
AC_CANONICAL_HOST |
| AC_ARG_WITH(ec, |
AC_ARG_WITH(ec, |
| AC_HELP_STRING([--with-ec=<arch>], |
AC_HELP_STRING([--with-ec=<arch>], |
| [ Build gforth for systems without OS.]), |
[ Build gforth for systems without OS.]), |
| AC_DEFINE(STANDALONE,,[Define if you want a Gforth without OS]) |
AC_DEFINE(STANDALONE,,[Define if you want a Gforth without OS]) |
| EC_MODE="true" |
EC_MODE="true" |
| EC="-ec" |
EC="-ec" |
| |
NO_EC="#" |
| engine2="" |
engine2="" |
| engine_fast2="" |
engine_fast2="" |
| no_dynamic="-DNO_DYNAMIC" |
no_dynamic="-DNO_DYNAMIC" |
| else |
else |
| signals_o="io.o" |
signals_o="io.o" |
| fi |
fi |
| |
if test -f "arch/$host_cpu/${withval}/config.sh"; then |
| |
source "arch/$host_cpu/${withval}/config.sh" |
| |
fi |
| GCC_PATH=$(which $CC) |
GCC_PATH=$(which $CC) |
| LIB_PATH=${GCC_PATH%/*/*} |
LIB_PATH=${GCC_PATH%/*/*} |
| GCC_LD="\$(LD)" |
GCC_LD="\$(LD)" |
| AC_SUBST(GCC_LD) |
AC_SUBST(GCC_LD) |
| AC_SUBST(DEBUGFLAG) |
AC_SUBST(DEBUGFLAG) |
| AC_SUBST(EC) |
AC_SUBST(EC) |
| |
AC_SUBST(NO_EC) |
| AC_SUBST(EC_MODE) |
AC_SUBST(EC_MODE) |
| AC_SUBST(engine2) |
AC_SUBST(engine2) |
| AC_SUBST(engine_fast2) |
AC_SUBST(engine_fast2) |
| |
|
| #terminology is a bit unusual here: The host is the system on which |
#terminology is a bit unusual here: The host is the system on which |
| #gforth will run; the system on which configure will run is the `build' |
#gforth will run; the system on which configure will run is the `build' |
| AC_CANONICAL_HOST |
|
| case "$host_cpu" in |
case "$host_cpu" in |
| arm*) |
arm*) |
| machine=arm |
machine=arm |
| #echo "machine='$machine'" |
#echo "machine='$machine'" |
| |
|
| dnl AC_CHECK_PROG(asm_fs,asm.fs,arch/$machine/asm.fs,,$srcdir/arch/$machine) |
dnl AC_CHECK_PROG(asm_fs,asm.fs,arch/$machine/asm.fs,,$srcdir/arch/$machine) |
| |
if test x$EC_MODE = xfalse |
| |
then |
| AC_CHECK_FILE($srcdir/arch/$machine/asm.fs,[asm_fs=arch/$machine/asm.fs],) |
AC_CHECK_FILE($srcdir/arch/$machine/asm.fs,[asm_fs=arch/$machine/asm.fs],) |
| |
fi |
| AC_SUBST(asm_fs) |
AC_SUBST(asm_fs) |
| |
|
| dnl AC_CHECK_PROG(disasm_fs,disasm.fs,arch/$machine/disasm.fs,,$srcdir/arch/$machine) |
dnl AC_CHECK_PROG(disasm_fs,disasm.fs,arch/$machine/disasm.fs,,$srcdir/arch/$machine) |
| |
if test x$EC_MODE = xfalse |
| |
then |
| AC_CHECK_FILE($srcdir/arch/$machine/disasm.fs,[disasm_fs=arch/$machine/disasm.fs],) |
AC_CHECK_FILE($srcdir/arch/$machine/disasm.fs,[disasm_fs=arch/$machine/disasm.fs],) |
| |
fi |
| AC_SUBST(disasm_fs) |
AC_SUBST(disasm_fs) |
| |
|
| AC_PATH_PROG(INSTALL_INFO,install-info,[echo '>>>>Please make info dir entry:'],$PATH:/sbin:/usr/sbin:/usr/local/sbin) |
AC_PATH_PROG(INSTALL_INFO,install-info,[echo '>>>>Please make info dir entry:'],$PATH:/sbin:/usr/sbin:/usr/local/sbin) |