look for doc-building dependencies only if WITH_DOC is set