From: Emil Velikov Date: Sat, 10 Aug 2024 12:25:15 +0000 (+0100) Subject: m4: reinstate CC_CHECK_FLAG_APPEND summary X-Git-Tag: v33~5 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=0cdd9847206b368800dac9099d5af2332340a0eb;p=thirdparty%2Fkmod.git m4: reinstate CC_CHECK_FLAG_APPEND summary Earlier commit was reducing the license boilerplate to SPDX license identifiers and erroneously dropped the function summary section. Cc: Lucas De Marchi Fixes: b5a2cd0 ("Use SPDX header for license") Signed-off-by: Emil Velikov Signed-off-by: Lucas De Marchi --- diff --git a/m4/attributes.m4 b/m4/attributes.m4 index 69865eea..a22bb586 100644 --- a/m4/attributes.m4 +++ b/m4/attributes.m4 @@ -4,6 +4,11 @@ # Copyright (c) 2006-2008 xine project # Copyright (c) 2012 Lucas De Marchi +# Check if FLAG in ENV-VAR is supported by compiler and append it +# to WHERE-TO-APPEND variable. Note that we invert -Wno-* checks to +# -W* as gcc cannot test for negated warnings. +# CC_CHECK_FLAG_APPEND([WHERE-TO-APPEND], [ENV-VAR], [FLAG]) + AC_DEFUN([CC_CHECK_FLAG_APPEND], [ AC_CACHE_CHECK([if $CC supports flag $3 in envvar $2], AS_TR_SH([cc_cv_$2_$3]),