diff options
author | Emil Velikov <emil.l.velikov@gmail.com> | 2015-04-05 16:40:11 +0100 |
---|---|---|
committer | Emil Velikov <emil.l.velikov@gmail.com> | 2015-04-28 11:20:52 +0100 |
commit | e59f00fb43c2b83bdadb17fa35c3018f817a3806 (patch) | |
tree | e6b2e9cb26dba864068fac78a420615a653b0e05 /configure.ac | |
parent | 0f8da82500ec542e269092c0718479e25eaff5f6 (diff) |
configure: request/set the compiler in C99 mode
Required by intel and drmstat at least. Considering that every compiler
used to build libdrm is C99 compatible, just enable it for the whole
build.
Signed-off-by: Emil Velikov <emil.l.velikov@gmail.com>
Diffstat (limited to 'configure.ac')
-rw-r--r-- | configure.ac | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/configure.ac b/configure.ac index e7152623..320e482e 100644 --- a/configure.ac +++ b/configure.ac @@ -36,6 +36,11 @@ m4_ifdef([AM_SILENT_RULES], [AM_SILENT_RULES([yes])]) # Check for programs AC_PROG_CC +AC_PROG_CC_C99 + +if test "x$ac_cv_prog_cc_c99" = xno; then + AC_MSG_ERROR([Building libdrm requires C99 enabled compiler]) +fi AC_USE_SYSTEM_EXTENSIONS AC_SYS_LARGEFILE |