--- gforth/configure.in 2008/01/13 19:56:13 1.208 +++ gforth/configure.in 2008/01/21 13:21:57 1.211 @@ -188,9 +188,13 @@ case "$host_cpu" in CFLAGS="$CFLAGS -mthumb -mthumb-interwork" fi if test -z $arm_cacheflush; then + if test $host_os = linux; then + arm_cacheflush=arch/arm/cacheflush-linux + else no_dynamic_default=1 arm_cacheflush=arch/arm/cacheflush0 AC_MSG_WARN([No I-cache flush code known, disabling dynamic native code generation]) + fi fi AC_LIBSOURCES([../arch/arm/cacheflush0, ../arch/arm/cacheflush1, ../arch/arm/cacheflush2]) AC_LIBOBJ(../$arm_cacheflush) @@ -600,7 +604,7 @@ AC_MSG_RESULT($M4) # Find installed Gforth AC_MSG_CHECKING([for gforth]) GFORTH="`which gforth 2>/dev/null`" -if test ! -z "$GFORTH"; then GFORTH="$GFORTH -m4M" ; fi +if test ! -z "$GFORTH"; then GFORTH="$GFORTH -m4M --die-on-signal -i `gforth --debug -e bye 2>&1 |grep "Opened image file: "|sed 's/Opened image file: //'`" ; fi AC_SUBST(GFORTH) AC_DEFINE_UNQUOTED(GFORTH,"$GFORTH",[How to invoke gforth]) AC_MSG_RESULT($GFORTH)