build: use -std=gnu11 by default

We require C11 for stdatomic.h
This commit is contained in:
Christian Hergert
2016-08-23 15:42:22 -07:00
parent f313ca4dae
commit d3a4355a97

View File

@ -90,6 +90,14 @@ AC_CHECK_MEMBERS([struct perf_event_attr.use_clockid, struct perf_event_attr.clo
[[#include <linux/perf_event.h>]])
dnl ***********************************************************************
dnl Ensure C11 is Supported
dnl ***********************************************************************
AX_CHECK_COMPILE_FLAG([-std=gnu11],
[CFLAGS="$CFLAGS -std=gnu11"],
[AC_MSG_ERROR([C compiler cannot compile GNU C11 code])])
dnl ***********************************************************************
dnl Check for required packages
dnl ***********************************************************************