--- gforth/configure.in 2007/04/22 20:06:25 1.184 +++ gforth/configure.in 2007/05/09 07:12:59 1.186 @@ -86,19 +86,20 @@ dnl --without-peephole disables peepho dnl but slower images.], dnl PEEPHOLE="$withval") +GCC_LD="\$(GCC)" +EC_MODE="false" +EC="" +engine2="engine2.o" +engine_fast2="engine-fast2.o" +no_dynamic="" +image_i="" +signals_o="io.o signals.o" + AC_ARG_WITH(ec, AC_HELP_STRING([--with-ec=], [ Build gforth for systems without OS.]), [if test "$withval" = "no"; then echo "defining hosted system" - EC_MODE="false" - EC="" - engine2="engine2.o" - engine_fast2="engine-fast2.o" - no_dynamic="" - image_i="" - signals_o="io.o signals.o" - GCC_LD="\$(GCC)" else echo "defining standalone system (${withval})" AC_DEFINE(STANDALONE,,[Define if you want a Gforth without OS]) @@ -768,7 +769,7 @@ then fi AC_REPLACE_FUNCS(memmove strtoul pow10 strerror strsignal atanh) AC_FUNC_FSEEKO -AC_CHECK_FUNCS(ftello dlopen sys_siglist getrusage) +AC_CHECK_FUNCS(ftello dlopen sys_siglist getrusage nanosleep) AC_CHECK_TYPES(stack_t,,,[#include ]) AC_DECL_SYS_SIGLIST AC_CHECK_FUNC(getopt_long,[true],[AC_LIBOBJ(getopt) AC_LIBOBJ(getopt1)])