It does use pkg-config to find SQLite, and since OpenSlide 3.3.1 has also used it for OpenJPEG.