[gnome-builder] build: gnu11 by default



commit 73fa5a812de8d1834914425124b392c327d8717a
Author: Christian Hergert <christian hergert me>
Date:   Sun May 17 22:16:20 2015 -0700

    build: gnu11 by default
    
    Works with clang and gcc, so enable gnu11 by default.

 configure.ac |    6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)
---
diff --git a/configure.ac b/configure.ac
index 8f870a3..cb6ba62 100644
--- a/configure.ac
+++ b/configure.ac
@@ -75,9 +75,9 @@ PKG_PROG_PKG_CONFIG([0.22])
 dnl ***********************************************************************
 dnl Ensure C11 is Supported
 dnl ***********************************************************************
-AX_CHECK_COMPILE_FLAG([-std=c11],
-                      [CFLAGS="$CFLAGS -std=c11"],
-                      [AC_MSG_ERROR([C compiler cannot compile C11 code])])
+AX_CHECK_COMPILE_FLAG([-std=gnu11],
+                      [CFLAGS="$CFLAGS -std=gnu11"],
+                      [AC_MSG_ERROR([C compiler cannot compile GNU C11 code])])
 
 
 dnl ***********************************************************************


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]