From: Victor Julien Date: Mon, 13 Apr 2020 05:47:02 +0000 (+0200) Subject: build: don't limit C std to c99 (gnu99) X-Git-Tag: suricata-6.0.0-beta1~501 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=1893e40e7949d7d2acdd5b145bd757e6bdbd2a84;p=thirdparty%2Fsuricata.git build: don't limit C std to c99 (gnu99) Now that C11 atomics and thread local storage are supported, the compiler can figure out what version to use. --- diff --git a/configure.ac b/configure.ac index 82d6d353df..37f81e930d 100644 --- a/configure.ac +++ b/configure.ac @@ -6,7 +6,6 @@ AM_INIT_AUTOMAKE([tar-ustar subdir-objects]) AC_LANG([C]) - AC_PROG_CC_C99 LT_INIT PKG_PROG_PKG_CONFIG diff --git a/src/Makefile.am b/src/Makefile.am index 6f4411b2d3..adde3ff97f 100755 --- a/src/Makefile.am +++ b/src/Makefile.am @@ -634,7 +634,6 @@ endif # default CFLAGS AM_CFLAGS = ${OPTIMIZATION_CFLAGS} ${GCC_CFLAGS} ${CLANG_CFLAGS} \ ${SECCFLAGS} ${PCAP_CFLAGS} -DLOCAL_STATE_DIR=\"$(localstatedir)\" \ - -std=gnu99 \ -Wall -Wno-unused-parameter -Wmissing-prototypes -Wmissing-declarations \ -Wstrict-prototypes -Wwrite-strings -Wbad-function-cast \ -Wformat-security -Wno-format-nonliteral -Wmissing-format-attribute \