configure: check if compiler supports -Werror=vla.
authorJonathan Gray <jsg@jsg.id.au>
Tue, 17 Mar 2015 02:16:05 +0000 (13:16 +1100)
committerJose Fonseca <jfonseca@vmware.com>
Wed, 18 Mar 2015 10:53:20 +0000 (10:53 +0000)
commit8475526a3842580f00a043bca8f821e14e9f5eb7
tree156b1cfb656fb36be6fb85c655d813a117ad5b59
parenteeb504e0ae7796e7ba475f6e9d6c26daa6b06608
configure: check if compiler supports -Werror=vla.

Check if the compiler supports -Werror=vla before using it.
-Wvla was introduced with GCC 4.3 and is not present in 4.2.
Fixes the build on OpenBSD.

v2: Fix statement order, and quote $save_CFLAGS.

Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=89433
Signed-off-by: Jonathan Gray <jsg@jsg.id.au>
Signed-off-by: Jose Fonseca <jfonseca@vmware.com>
configure.ac