mirror of
https://github.com/varun-r-mallya/sysprof.git
synced 2025-12-31 20:36:25 +00:00
build: use -std=gnu11 by default
We require C11 for stdatomic.h
This commit is contained in:
@ -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 ***********************************************************************
|
||||
|
||||
Reference in New Issue
Block a user