summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--configure.ac7
1 files changed, 6 insertions, 1 deletions
diff --git a/configure.ac b/configure.ac
index 73f9c3e..9d10ffb 100644
--- a/configure.ac
+++ b/configure.ac
@@ -167,10 +167,15 @@ AC_C_CONST
AC_C_INLINE
AC_C_RESTRICT
AC_C_STRINGIZE
-# AC_C_VARARRAYS
+AC_C_VARARRAYS
AC_TYPE_SIZE_T
AC_TYPE_UINT8_T
+if test x"$ac_cv_c_vararrays" != x'yes'
+then
+ AC_MSG_ERROR([$CC does not support variable-length arrays (VLAs)])
+fi
+
# Checks for library functions.
AC_CHECK_FUNCS_ONCE([getenv getpwuid stat])