On Thu, Mar 10, 2011 at 11:02 AM, Jef Driesen <jefdrie...@hotmail.com>wrote:
> > mi...@gnu.org wrote: > > Jef Driesen writes: > >> Isn't it easier to just check for the presence of the header file and/or > >> the library file, avoiding pkg-config entirely? > > > > Well, I'd prefer not to guess when possible, and not using pkg-config > > for a package that wants you to use it means you end up guessing at the > > proper locations/settings. Maybe this often works, but why risk it when > > it's not necessary? > > I'm aware of the advantage of using pkg-config. I even supply the *.pc > files for my own projects. But the point is that if I want to support > systems that don't have pkg-config installed (like Mac OS X in my case), I > have to provide a fallback with manual detection anyway. So why not skip > pkg-config entirely? > You also have to support static linking. Vincent