version 1.178, 2007/03/25 21:30:59
|
version 1.182, 2007/04/09 22:36:01
|
Line 21 dnl Process this file with autoconf to p
|
Line 21 dnl Process this file with autoconf to p
|
|
|
dnl We use some automake macros here, |
dnl We use some automake macros here, |
dnl but don't use automake for creating Makefile.in |
dnl but don't use automake for creating Makefile.in |
AC_INIT([gforth],[0.6.2-20060527],[https://savannah.gnu.org/bugs/?func=addbug&group=gforth]) |
AC_INIT([gforth],[0.6.9-20070401],[https://savannah.gnu.org/bugs/?func=addbug&group=gforth]) |
AC_PREREQ(2.54) |
AC_PREREQ(2.54) |
#snapshots have numbers major.minor.release-YYYYMMDD |
#snapshots have numbers major.minor.release-YYYYMMDD |
#note that lexicographic ordering must be heeded. |
#note that lexicographic ordering must be heeded. |
Line 86 dnl --without-peephole disables peepho
|
Line 86 dnl --without-peephole disables peepho
|
dnl but slower images.], |
dnl but slower images.], |
dnl PEEPHOLE="$withval") |
dnl PEEPHOLE="$withval") |
|
|
AC_ARG_ENABLE(ec, |
AC_ARG_WITH(ec, |
AC_HELP_STRING([--enable-ec], |
AC_HELP_STRING([--with-ec=<arch>], |
[ Build gforth for systems without OS.]), |
[ Build gforth for systems without OS.]), |
,enable_ec=no) |
[if test "$withval" = "no"; then |
if test "$enable_ec" = "yes"; then |
|
echo "defining standalone system" |
|
AC_DEFINE(STANDALONE,,[Define if you want a Gforth without OS]) |
|
EC_MODE="true" |
|
EC="-ec" |
|
engine2="" |
|
engine_fast2="" |
|
no_dynamic="-DNO_DYNAMIC" |
|
image_i="image.i" |
|
else |
|
echo "defining hosted system" |
echo "defining hosted system" |
EC_MODE="false" |
EC_MODE="false" |
EC="" |
EC="" |
Line 107 else
|
Line 97 else
|
engine_fast2="engine-fast2.o" |
engine_fast2="engine-fast2.o" |
no_dynamic="" |
no_dynamic="" |
image_i="" |
image_i="" |
fi |
signals_o="io.o signals.o" |
|
else |
|
echo "defining standalone system (${withval})" |
|
AC_DEFINE(STANDALONE,,[Define if you want a Gforth without OS]) |
|
EC_MODE="true" |
|
EC="-ec" |
|
engine2="" |
|
engine_fast2="" |
|
no_dynamic="-DNO_DYNAMIC" |
|
image_i="image.i" |
|
if test "$withval" != "yes"; then |
|
signals_o="io-${withval}.o" |
|
else |
|
signals_o="io.o" |
|
fi |
|
fi]) |
|
|
#variables mentioned in INSTALL |
#variables mentioned in INSTALL |
AC_ARG_VAR(CC, [The C compiler (must support GNU C 2.x); gcc-2.95 recommended.]) |
AC_ARG_VAR(CC, [The C compiler (must support GNU C 2.x); gcc-2.95 recommended.]) |
Line 161 AC_SUBST(engine2)
|
Line 166 AC_SUBST(engine2)
|
AC_SUBST(engine_fast2) |
AC_SUBST(engine_fast2) |
AC_SUBST(no_dynamic) |
AC_SUBST(no_dynamic) |
AC_SUBST(image_i) |
AC_SUBST(image_i) |
|
AC_SUBST(signals_o) |
|
|
#this is used to disable some (not generally essential) part of the |
#this is used to disable some (not generally essential) part of the |
#Makefile that some makes don't grok. It would be better to test for |
#Makefile that some makes don't grok. It would be better to test for |