mirror of
https://github.com/php/php-src.git
synced 2025-08-15 21:48:51 +02:00
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.
This commit is contained in:
parent
90e0ce7f0d
commit
08e2c6fb7b
1 changed files with 4 additions and 9 deletions
|
@ -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)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue