--- gforth/configure.in 2008/10/26 13:28:02 1.259 +++ gforth/configure.in 2008/10/27 22:03:12 1.261 @@ -197,6 +197,7 @@ AC_CANONICAL_HOST case "$host_cpu" in arm*) machine=arm + $srcdir/mkinstalldirs arch/arm CFLAGS="$CFLAGS -fomit-frame-pointer" if test x$platform = xnxt; then CFLAGS="$CFLAGS -mthumb -mthumb-interwork" @@ -204,18 +205,18 @@ case "$host_cpu" in if test -z $arm_cacheflush; then case "$host_os" in *linux*) - arm_cacheflush=arch/arm/cacheflush-linux + AC_LIBOBJ(../arch/arm/cacheflush-linux) ;; *) no_dynamic_default=1 - arm_cacheflush=arch/arm/cacheflush0 + AC_LIBOBJ(../arch/arm/cacheflush0) AC_MSG_WARN([No I-cache flush code known, disabling dynamic native code generation]) ;; esac + else + AC_LIBOBJ(../$arm_cacheflush) + test $srcdir = . || AC_MSG_WARN([setting arm_cacheflush requires building in the source directory]) fi - AC_LIBSOURCES([arch/arm/cacheflush0, dnl - arch/arm/cacheflush-linux]) - AC_LIBOBJ(../$arm_cacheflush) #longer skipcodes lead to problems on ARM, and it uses #only 4-byte alignment anyway test "$skipcode" || skipcode="nop"