Commit 694b9a20 authored by Andreas Marek's avatar Andreas Marek

Check in configure for std=c11 flag; set it or fail

parent 9a5c2a5b
......@@ -109,6 +109,14 @@ if test x"${enable_openmp}" = x"yes"; then
CFLAGS="$OPENMP_CFLAGS $CFLAGS"
fi
AX_CHECK_COMPILE_FLAG([-std=c11], [
CFLAGS+=" -std=c11"
], [
echo "C compiler cannot compile C11 code"
exit -1
])
AC_PROG_INSTALL
AM_PROG_AR
AM_PROG_AS
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment