4 dnl Test for variable size arrays.
7 AC_DEFUN([rk_C_VARARRAY], [
8 AC_CACHE_CHECK([if the compiler supports variable-length arrays],[rk_cv_c_vararray],[
9 AC_COMPILE_IFELSE([AC_LANG_PROGRAM([[]],[[int x = 0; { int y[x]; }]])],
10 [rk_cv_c_vararray=yes],
11 [rk_cv_c_vararray=no])])
12 if test "$rk_cv_c_vararray" = yes; then
13 AC_DEFINE([HAVE_VARIABLE_LENGTH_ARRAY], [1],
14 [Define if your compiler supports variable-length arrays.])