--- gforth/configure.in 2003/07/31 20:47:18 1.123 +++ gforth/configure.in 2003/08/06 09:35:49 1.126 @@ -309,9 +309,9 @@ AC_MSG_RESULT($ac_nostrictaliasing) AC_MSG_CHECKING([if $CC understands -fno-crossjumping]) CFLAGS_1="$CFLAGS" CFLAGS="$CFLAGS -fno-crossjumping" -AC_TRY_COMPILE(,,ac_nocrossjump=yes;ENGINE_FLAGS="$ENGINE_FLAGS -fno-crossjumping",ac_nocrossjump=no) +AC_TRY_COMPILE(,,ac_nocrossjumping=yes;ENGINE_FLAGS="$ENGINE_FLAGS -fno-crossjumping",ac_nocrossjumping=no) CFLAGS="$CFLAGS_1" -AC_MSG_RESULT($ac_nocrossjump) +AC_MSG_RESULT($ac_nocrossjumping) AC_CHECK_PROG(asm_fs,asm.fs,arch/$machine/asm.fs,,$srcdir/arch/$machine) AC_SUBST(asm_fs) @@ -431,6 +431,15 @@ dnl This check is just for making later dnl using sin here is no good idea since it is built-into gcc and typechecked AC_CHECK_LIB(m,asin) AC_CHECK_LIB(dl,dlopen) +dnl check for ffcall libraries +dnl unfortunately, these four calls are separated out into a library each. +AC_CHECK_LIB(avcall,__builtin_avcall) +AC_CHECK_LIB(callback,__vacall_r) +AC_CHECK_LIB(vacall,vacall) +AC_CHECK_LIB(trampoline,alloc_trampoline) +FFCALLFLAG="false" +test $ac_cv_lib_avcall___builtin_avcall = yes && FFCALLFLAG="true" && AC_DEFINE(HAS_FFCALL,,[define this if you want to use the ffcall libraries]) +AC_SUBST(FFCALLFLAG) if test "$host_os" != "nextstep3" then AC_FUNC_MEMCMP