configure.ac: if we have a C17/C11-compatible compiler, use it

Enable -std=c17 or -std=c11 for compilers that handle them.

Signed-off-by: H. Peter Anvin (Intel) <hpa@zytor.com>
This commit is contained in:
H. Peter Anvin (Intel) 2020-07-09 19:12:25 -07:00
parent abcdf8356a
commit e8d6bbacd4

View file

@ -23,11 +23,12 @@ export WINELOADER
dnl Get the canonical target system name
AC_CANONICAL_HOST
dnl Enable necessary CC extensions
dnl Enable any available C extensions
AC_USE_SYSTEM_EXTENSIONS
AC_SYS_LARGEFILE
AC_PROG_CC
AC_PROG_CC_STDC
PA_ADD_CFLAGS([-std=c11])
dnl If the user did not specify a CFLAGS default, change default
dnl to -O0 for debugging