From 0553842347d0a93aa1aa71c486f71a8a8f477684 Mon Sep 17 00:00:00 2001 From: Alexandre Duret-Lutz Date: Tue, 10 Nov 2015 13:36:21 +0100 Subject: [PATCH] activate c11 for gnulib tests * configure.ac: Here. --- configure.ac | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/configure.ac b/configure.ac index edbed79a5..580ce4a65 100644 --- a/configure.ac +++ b/configure.ac @@ -44,8 +44,10 @@ AC_PROG_CXX AM_PROG_LEX adl_CHECK_BISON -gl_INIT +# Activate at C11 for gnulib tests +AX_CHECK_COMPILE_FLAG([-std=c11], [CFLAGS="$CFLAGS -std=c11"]) +gl_INIT # Use -Werror since using -fvisibility under MinGW is only a warning. # (The option is ignored anyway since this does not make sense under windows).