This is not really a nice solution.
The real fix should happen in m4/reorganization/clamdtop.m4 but that one uses a self written autoconf macro "AC_LIB_FIND" from acinclude.m4 file which I do not fully understand.
IMHO that macro call should be replaced by a proper PKG_CHECK_MODULES call.