From 192a24a035d5ef887e4163925156502552b78c7d Mon Sep 17 00:00:00 2001 From: jvoisin Date: Mon, 28 Mar 2022 22:04:17 +0200 Subject: Use `AC_PROG_CC` to make compilers behave correctly --- src/config.m4 | 2 ++ 1 file changed, 2 insertions(+) (limited to 'src') diff --git a/src/config.m4 b/src/config.m4 index 78ca6a2..9d41a86 100644 --- a/src/config.m4 +++ b/src/config.m4 @@ -21,6 +21,8 @@ PHP_ARG_ENABLE(debug, whether to enable debug messages, PHP_ARG_ENABLE(debug-stderr, whether to enable debug messages, [ --enable-debug-stderr Enable debug messages], no, no) +AC_PROG_CC() + CFLAGS="$CFLAGS" CFLAGS="$CFLAGS -Wall -Wextra -Wno-unused-parameter" CFLAGS="$CFLAGS -Wformat=2 -Wformat-security -D_FORTIFY_SOURCE=2" -- cgit v1.3