NetBSD-5.0.2/crypto/dist/heimdal/cf/vararray.m4

Compare this file to the similar file:
Show the results in this format:

dnl
dnl $Heimdal: vararray.m4 14166 2004-08-26 12:35:42Z joda $
dnl $NetBSD: vararray.m4,v 1.1 2008/03/22 08:36:58 mlelstv Exp $
dnl
dnl Test for variable size arrays.
dnl

AC_DEFUN([rk_C_VARARRAY], [
	AC_CACHE_CHECK([if the compiler supports variable-length arrays],[rk_cv_c_vararray],[
	AC_COMPILE_IFELSE([AC_LANG_PROGRAM([[]],[[int x = 0; { int y[x]; }]])],
		[rk_cv_c_vararray=yes],
		[rk_cv_c_vararray=no])])
	if test "$rk_cv_c_vararray" = yes; then
		AC_DEFINE([HAVE_VARIABLE_LENGTH_ARRAY], [1],
			[Define if your compiler supports variable-length arrays.])
	fi
])