From 518f2f45a75c2714c360aa4e68302693b571d4a9 Mon Sep 17 00:00:00 2001 From: "Richard W.M. Jones" Date: Thu, 1 Jan 1970 00:00:00 +0000 Subject: [PATCH] Check OCaml compiler word size --- aclocal.m4 | 15 +++++++++++++++ configure.ac | 2 ++ 2 files changed, 17 insertions(+) diff --git a/aclocal.m4 b/aclocal.m4 index 38ad15f..fad331a 100644 --- a/aclocal.m4 +++ b/aclocal.m4 @@ -168,3 +168,18 @@ else $2=no fi AC_SUBST($2)]) + + +dnl AC_CHECK_OCAML_WORD_SIZE(var) sets var=32 or var=64 +dnl according to the compiler word size. +dnl Contributed by Richard W.M. Jones +dnl XXX This completely fails to deal with cross-compiler case. +AC_DEFUN([AC_CHECK_OCAML_WORD_SIZE], +[dnl +AC_MSG_CHECKING(for OCaml compiler word size) +cat > conftest.ml <