--- gforth/configure.in 2007/04/01 21:30:26 1.181 +++ gforth/configure.in 2007/04/09 22:36:01 1.182 @@ -86,21 +86,10 @@ dnl --without-peephole disables peepho dnl but slower images.], dnl PEEPHOLE="$withval") -AC_ARG_ENABLE(ec, - AC_HELP_STRING([--enable-ec], +AC_ARG_WITH(ec, + AC_HELP_STRING([--with-ec=], [ Build gforth for systems without OS.]), - ,enable_ec=no) -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" - signals_o="" -else +[if test "$withval" = "no"; then echo "defining hosted system" EC_MODE="false" EC="" @@ -108,8 +97,22 @@ else engine_fast2="engine-fast2.o" no_dynamic="" image_i="" - signals_o="signals.o" -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 AC_ARG_VAR(CC, [The C compiler (must support GNU C 2.x); gcc-2.95 recommended.])