internalize
[mono.git] / configure.in
index 6eb75675261dc24801665e8e5d4c1816e67d4fc1..c2517382fb1fcbc4ea57b10d3f9925a89a0f4e90 100644 (file)
@@ -1640,10 +1640,14 @@ AM_CONDITIONAL(ENABLE_NUNIT_TESTS, [test x$enable_nunit_tests = xyes])
 
 AC_MSG_CHECKING([if big-arrays are to be enabled])
 AC_ARG_ENABLE(big-arrays,  [ --enable-big-arrays       Enable the allocation and indexing of arrays greater than Int32.MaxValue], enable_big_arrays=$enableval, enable_big_arrays=no)
-AC_MSG_RESULT($enable_big_arrays)
 if test "x$enable_big_arrays" = "xyes" ; then
+    if  test "x$ac_cv_sizeof_void_p" = "x8"; then
        AC_DEFINE(MONO_BIG_ARRAYS,1,[Enable the allocation and indexing of arrays greater than Int32.MaxValue])
+    else
+        AC_MSG_ERROR([The allocation and indexing of arrays greater than Int32.MaxValue is not supported on this platform.])
+    fi
 fi
+AC_MSG_RESULT($enable_big_arrays)
 
 dnl **************
 dnl *** DTRACE ***