As per https://github.com/emil-e/rapidcheck/blob/master/doc/boost_test.md Boost Test integration is an "extra" and not guaranteed to be available alongside rapidcheck itself. Checking for it in configure.ac avoids rapidcheck being enabled when not fully available.
On my machine, before:
checking rapidcheck.h usability... yes
checking rapidcheck.h presence... yes
checking for rapidcheck.h... yes
[...]
CXX wallet/test/test_test_bitcoin-psbt_wallet_tests.o
test/key_properties.cpp:16:10: fatal error: 'rapidcheck/boost_test.h' file not found
#include <rapidcheck/boost_test.h>
^~~~~~~~~~~~~~~~~~~~~~~~~
1 error generated.
After:
checking rapidcheck.h usability... yes
checking rapidcheck.h presence... yes
checking for rapidcheck.h... yes
checking rapidcheck/boost_test.h usability... no
checking rapidcheck/boost_test.h presence... no
checking for rapidcheck/boost_test.h... no