Skip to content

Commit 08e2c6f

Browse files
authored
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.
1 parent 90e0ce7 commit 08e2c6f

File tree

1 file changed

+4
-9
lines changed

1 file changed

+4
-9
lines changed

sapi/fuzzer/config.m4

Lines changed: 4 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,11 @@
1-
AC_MSG_CHECKING(for clang fuzzer SAPI)
2-
3-
PHP_ARG_ENABLE([fuzzer],,
1+
PHP_ARG_ENABLE([fuzzer],
2+
[for Clang fuzzer SAPI],
43
[AS_HELP_STRING([--enable-fuzzer],
5-
[Build PHP as clang fuzzing test module (for developers)])],
4+
[Build PHP as Clang fuzzing test module (for developers)])],
65
[no],
76
[no])
87

9-
dnl For newer clang versions see https://llvm.org/docs/LibFuzzer.html#fuzzer-usage
8+
dnl For newer Clang versions see https://llvm.org/docs/LibFuzzer.html#fuzzer-usage
109
dnl for relevant flags.
1110

1211
dnl Macro to define fuzzing target
@@ -20,8 +19,6 @@ AC_DEFUN([PHP_FUZZER_TARGET], [
2019
])
2120

2221
if test "$PHP_FUZZER" != "no"; then
23-
AC_MSG_RESULT([yes])
24-
2522
AS_VAR_IF([enable_zts], [yes], [AC_MSG_ERROR(m4_normalize([
2623
Thread safety (--enable-zts) is not supported when building fuzzing module
2724
(--enable-fuzzer). Please build fuzzer without ZTS.
@@ -78,5 +75,3 @@ if test "$PHP_FUZZER" != "no"; then
7875

7976
PHP_SUBST(PHP_FUZZER_BINARIES)
8077
fi
81-
82-
AC_MSG_RESULT($PHP_FUZZER)

0 commit comments

Comments
 (0)