[php-src] PR #14736: Autotools: Refactor Valgrind support
| From: | petk | Date: | Sun, 30 Jun 2024 20:49:08 +0000 |
| Subject: | [php-src] PR #14736: Autotools: Refactor Valgrind support | ||
| Groups: | php.git-pulls | ||
| Request: | Send a blank email to git-pulls+get-26917@lists.php.net to get a copy of this message | ||
Pull Request: https://github.com/php/php-src/pull/14736
Author: petk
When Valgrind is enabled and not found on the system, default error can be thrown by
PKG_CHECK_MODULES instead of writing a manual error step.
- This uses less redundant variables and has synced CS.
- AS_VAR_IF used instead of raw shell ifs
- Added some basic help descriptions for macro definitions
Default error is also more descriptive
```
configure: error: Package requirements (valgrind) were not met:
Package 'valgrind', required by 'virtual:world', not found
Consider adjusting the PKG_CONFIG_PATH environment variable if you
installed software in a non-standard prefix.
Alternatively, you may set the environment variables VALGRIND_CFLAGS
and VALGRIND_LIBS to avoid the need to call pkg-config.
See the pkg-config man page for more details.
```