> On 9 Jun 2022, at 06:52, Eli Schwartz via Bzip2-devel wrote: > > On 6/3/22 1:09 AM, ~eschwartz wrote: >> From: Eli Schwartz >> >> A pkg-config file is necessary in order to robustly communicate across >> build systems that bz2 is installed, *where* it is installed, and the >> correct CFLAGS / LDFLAGS to use in order to compile and link against it. > > > Some distros already provide one of these, so it's currently a bit > inconsistent how to look for the library. As a result, there is software > in the wild that probes for the library name, and fails if the library > is installed to a custom prefix, and other software that checks for > pkg-config, and fails on distros that don't provide their own bzip2.pc > > In general it's good to have. > > And particularly, it makes it much easier to detect bzip2 as "a > dependency" instead of "manual linker flags" from the Meson build > system, which can then toggle between multiple "dependency" providers > via e.g. > https://mesonbuild.com/Wrap-dependency-system-manual.html#provide-section > The whole series looks great, thanks for doing this. Best, sam