From 6f75cddddaa8848b729569daab4059e180ce0eb1 Mon Sep 17 00:00:00 2001 From: Glenn Strauss Date: Mon, 15 May 2017 20:26:56 -0400 Subject: [PATCH] [build] autotools use AC_PROG_CC_STDC macro autotools now use AC_PROG_CC_STDC macro instead of -std=gnu99. The default in current modern gcc compilers is -std=gnu11 (Note: src/CMakeLists.txt and SConstruct still specify -std=gnu99) --- configure.ac | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/configure.ac b/configure.ac index 2e755f9f..57e7aa5c 100644 --- a/configure.ac +++ b/configure.ac @@ -62,6 +62,7 @@ AC_DEFUN([TRY_LDFLAGS], dnl Checks for programs. AC_PROG_CC +AC_PROG_CC_STDC AX_PROG_CC_FOR_BUILD AM_PROG_CC_C_O AC_PROG_LD @@ -965,7 +966,6 @@ AM_CONDITIONAL(CHECK_WITH_FASTCGI, test "x$fastcgi_found" = xyes) dnl check for extra compiler options (warning options) if test "${GCC}" = "yes"; then TRY_CFLAGS([-Wall -W -Wshadow -pedantic]) - TRY_CFLAGS([-std=gnu99]) fi AC_ARG_ENABLE(extra-warnings,