On MacOS / Homebrew, libcppunit is not part of the system path.
pkg-config will report it; use it.
This change also ensures squid honours the promise made
in configure's help text to let administrators specify a
LIBCPPUNIT_LIBS environment variable to
override automatic detection
SQUID_AUTO_LIB(cppunit,[cppunit test framework],[LIBCPPUNIT])
SQUID_CHECK_LIB_WORKS(cppunit,[
- LIBCPPUNIT_LIBS="$LIBCPPUNIT_PATH -lcppunit"
PKG_CHECK_MODULES([LIBCPPUNIT],[cppunit],[
squid_cv_cppunit_version="`pkg-config --modversion cppunit`"
AC_MSG_NOTICE([using system installed cppunit version $squid_cv_cppunit_version])