We currently do not reliably check fort a C11 compiler. AFAIK, a correct way to do so would be to replace the current use of AC_PROG_C99 by AC_PROG_CC and a check if test "$ac_cv_prog_cc_c11" != "no". This works in autoconf version 2.71. As C11 is the highest C standard autoconf 2.71 can handle, and AC_PROG_CC will try to set the C compiler to the highest standard version supported by both the compiler and autoconf.
Diff:
Implemented in the next branch in [r14095].
Related
Commit: [r14095]
Fixed in [r14211] by merging next to trunk.
Related
Commit: [r14211]