2 dnl $Heimdal: vararray.m4 14166 2004-08-26 12:35:42Z joda $
5 dnl Test for variable size arrays.
8 AC_DEFUN([rk_C_VARARRAY], [
9 AC_CACHE_CHECK([if the compiler supports variable-length arrays],[rk_cv_c_vararray],[
10 AC_COMPILE_IFELSE([AC_LANG_PROGRAM([[]],[[int x = 0; { int y[x]; }]])],
11 [rk_cv_c_vararray=yes],
12 [rk_cv_c_vararray=no])])
13 if test "$rk_cv_c_vararray" = yes; then
14 AC_DEFINE([HAVE_VARIABLE_LENGTH_ARRAY], [1],
15 [Define if your compiler supports variable-length arrays.])