diff --git a/configure b/configure
index cd72f3637601808c20c53639c688fee42d2592cf..34680d4784049822e29963237d8ba9ac84a3f446 100755
--- a/configure
+++ b/configure
@@ -3504,6 +3504,7 @@ elif enabled gcc; then
     check_cflags -Werror=implicit-function-declaration
     check_cflags -Werror=missing-prototypes
     check_cflags -Werror=declaration-after-statement
+    check_cflags -Werror=vla
 elif enabled llvm_gcc; then
     check_cflags -mllvm -stack-alignment=16
 elif enabled clang; then