12 |
|
|
13 |
help="--enable-maxpage=XXXX will compile in a page table of size XXX (default ${default_maxpage})" |
help="--enable-maxpage=XXXX will compile in a page table of size XXX (default ${default_maxpage})" |
14 |
AC_ARG_ENABLE(maxpage,[ --enable-maxpage=XXXX will compile in a page table of size XXX (eg '--enable-maxpage=64*1024' would give 64K pages allowing 256 MB if pages are 4K each)] , |
AC_ARG_ENABLE(maxpage,[ --enable-maxpage=XXXX will compile in a page table of size XXX (eg '--enable-maxpage=64*1024' would give 64K pages allowing 256 MB if pages are 4K each)] , |
15 |
[AC_DEFINE_UNQUOTED(MAXPAGE,$enable_maxpage)] |
[AC_DEFINE_UNQUOTED(MAXPAGE,$enable_maxpage)]) |
|
) |
|
16 |
|
|
17 |
AC_ARG_ENABLE(vssize,[ --enable-vssize=XXXX will compile in a value stack of size XXX] , |
AC_ARG_ENABLE(vssize,[ --enable-vssize=XXXX will compile in a value stack of size XXX] , |
18 |
[AC_DEFINE_UNQUOTED(VSSIZE,$enable_vssize)] |
[AC_DEFINE_UNQUOTED(VSSIZE,$enable_vssize)]) |
19 |
) |
|
20 |
|
AC_ARG_ENABLE(bdssize,[ --enable-bdssize=XXXX will compile in a binding stack of size XXX] , |
21 |
|
[AC_DEFINE_UNQUOTED(BDSSIZE,$enable_bdssize)]) |
22 |
|
|
23 |
|
AC_ARG_ENABLE(ihssize,[ --enable-ihssize=XXXX will compile in a invocation history stack of size XXX] , |
24 |
|
[AC_DEFINE_UNQUOTED(IHSSIZE,$enable_ihssize)]) |
25 |
|
|
26 |
|
AC_ARG_ENABLE(frssize,[ --enable-frssize=XXXX will compile in a frame stack of size XXX] , |
27 |
|
[AC_DEFINE_UNQUOTED(FRSSIZE,$enable_frssize)]) |
28 |
|
|
29 |
AC_ARG_ENABLE(machine,[ --enable-machine=XXXX will force the use of one of the definitions in h/XXXX.defs] , |
AC_ARG_ENABLE(machine,[ --enable-machine=XXXX will force the use of one of the definitions in h/XXXX.defs] , |
30 |
[enable_machine=$enableval],[enable_machine=""]) |
[enable_machine=$enableval],[enable_machine=""]) |
716 |
# mechanism, in the PAGE macro. This offset is subtracted from |
# mechanism, in the PAGE macro. This offset is subtracted from |
717 |
# addresses, in calculating a page for an address in the heap. |
# addresses, in calculating a page for an address in the heap. |
718 |
|
|
719 |
AC_CHECK_SIZEOF(long *,0) |
AC_CHECK_SIZEOF(long,0) |
720 |
|
AC_MSG_CHECKING(sizeof struct contblock) |
721 |
|
AC_TRY_RUN([#include <stdio.h> |
722 |
|
#define EXTER |
723 |
|
#include "$MP_INCLUDE" |
724 |
|
#include "h/enum.h" |
725 |
|
#include "h/object.h" |
726 |
|
int main(int argc,char **argv,char **envp) { |
727 |
|
FILE *f=fopen("conftest1","w"); |
728 |
|
fprintf(f,"%u",sizeof(struct contblock)); |
729 |
|
fclose(f); |
730 |
|
return 0; |
731 |
|
}],sizeof_contblock=`cat conftest1`, |
732 |
|
echo Cannot find sizeof struct contblock;exit 1, |
733 |
|
echo Cannot find sizeof struct contblock;exit 1) |
734 |
|
AC_MSG_RESULT($sizeof_contblock) |
735 |
|
AC_DEFINE_UNQUOTED(SIZEOF_CONTBLOCK,$sizeof_contblock) |
736 |
|
|
737 |
|
|
738 |
AC_CHECK_HEADERS(endian.h, |
AC_CHECK_HEADERS(endian.h, |
739 |
AC_MSG_CHECKING("endianness") |
AC_MSG_CHECKING("endianness") |