--- gforth/configure.in 2002/11/24 21:20:32 1.89 +++ gforth/configure.in 2002/12/23 22:14:05 1.91 @@ -307,6 +307,33 @@ else KERNEL="kernl16l.fi kernl16b.fi kernl32l.fi kernl32b.fi kernl64l.fi kernl64b.fi" fi +#check how to do asm(".skip 16") +for i in ".skip 16" ".block 16" ".org .+16" ".=.+16" ".space 16" +do + AC_MSG_CHECKING([whether asm("$i") skips 16 bytes]) + AC_TRY_RUN( +int foo(int); +main() +{ + exit(foo(0)!=16); +} +int foo(int x) +{ + if (x) { + label1: + asm("$i"); + label2: + } + return (&&label2)-(&&label1); +} + ,AC_MSG_RESULT(yes) + AC_DEFINE_UNQUOTED(SKIP16,asm("$i"),statement for skipping 16 bytes) + break + ,AC_MSG_RESULT(no),) + +done + + dnl Checks for programs. AC_PROG_LN_S dnl AM_PROG_INSTALL #performed by AM_INIT_AUTOMAKE @@ -324,8 +351,8 @@ AC_REPLACE_FUNCS(memmove strtoul pow10 s AC_CHECK_FUNCS(dlopen sys_siglist getrusage) AC_DECL_SYS_SIGLIST AC_CHECK_FUNC(getopt_long,true,AC_LIBOBJ(getopt.$ac_objext getopt1)) -AC_CHECK_FUNCS(rint expm1 log1p) -AC_REPLACE_FUNCS(ecvt) +AC_CHECK_FUNCS(expm1 log1p) +AC_REPLACE_FUNCS(rint ecvt) dnl No check for select, because our replacement is no good under dnl anything but DOS AC_CHECK_HEADERS(sys/mman.h fnmatch.h)