From 08e2c6fb7b10df3dca0594ff5018083562fdd6ce Mon Sep 17 00:00:00 2001 From: Peter Kokot Date: Mon, 20 May 2024 20:46:09 +0200 Subject: [PATCH] Fix fuzzer result message in configure log (#14278) The 2nd argument of PHP_ARG_ENABLE can be a check message to avoid manual AC_MSG_* calls. --- sapi/fuzzer/config.m4 | 13 ++++--------- 1 file changed, 4 insertions(+), 9 deletions(-) diff --git a/sapi/fuzzer/config.m4 b/sapi/fuzzer/config.m4 index e35053d72cfac..10a623ff82e10 100644 --- a/sapi/fuzzer/config.m4 +++ b/sapi/fuzzer/config.m4 @@ -1,12 +1,11 @@ -AC_MSG_CHECKING(for clang fuzzer SAPI) - -PHP_ARG_ENABLE([fuzzer],, +PHP_ARG_ENABLE([fuzzer], + [for Clang fuzzer SAPI], [AS_HELP_STRING([--enable-fuzzer], - [Build PHP as clang fuzzing test module (for developers)])], + [Build PHP as Clang fuzzing test module (for developers)])], [no], [no]) -dnl For newer clang versions see https://llvm.org/docs/LibFuzzer.html#fuzzer-usage +dnl For newer Clang versions see https://llvm.org/docs/LibFuzzer.html#fuzzer-usage dnl for relevant flags. dnl Macro to define fuzzing target @@ -20,8 +19,6 @@ AC_DEFUN([PHP_FUZZER_TARGET], [ ]) if test "$PHP_FUZZER" != "no"; then - AC_MSG_RESULT([yes]) - AS_VAR_IF([enable_zts], [yes], [AC_MSG_ERROR(m4_normalize([ Thread safety (--enable-zts) is not supported when building fuzzing module (--enable-fuzzer). Please build fuzzer without ZTS. @@ -78,5 +75,3 @@ if test "$PHP_FUZZER" != "no"; then PHP_SUBST(PHP_FUZZER_BINARIES) fi - -AC_MSG_RESULT($PHP_FUZZER)