--atleast-pkgconfig-version widely misused

jcupitt at gmail.com jcupitt at gmail.com
Mon Jul 19 08:11:10 PDT 2010


Martin Unsal wrote:
> I ran into this problem doing something like this:
>
> PKG_CONFIG="/usr/bin/pkg-config --define-variable=prefix=/foo/bar"
> ./configure
>
> ... which does not function as expected and I believe is a perfectly
> reasonable thing to expect to do with pkg-config and configure!

I've just been bitten by this bug as well. In case anyone doesn't
figure it out, one workaround is to do:

   PKG_CONFIG="/usr/bin/pkg-config --define-variable prefix=/foo/bar"
   ./configure

ie. split define-variable into two parts. If you do this, configure's
--atleast-pkgconfig-version test starts working.

John


More information about the pkg-config mailing list