automake
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: PKG_CHECK_MODULES on system without pkg-config installed?


From: Vincent Torri
Subject: Re: PKG_CHECK_MODULES on system without pkg-config installed?
Date: Thu, 10 Mar 2011 11:38:16 +0100

On Thu, Mar 10, 2011 at 11:02 AM, Jef Driesen <address@hidden>wrote:

>
> address@hidden 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


reply via email to

[Prev in Thread] Current Thread [Next in Thread]