On Mon, Jun 22, 2015 at 1:57 PM, LM <lme...@gmail.com> wrote: > On Sat, Jun 20, 2015 at 9:04 AM, Kevin Lamonte <kevin.lamo...@gmail.com> > wrote: >> End-users wanting the X11 version right now can also pass "--with-x >> --x-libraries=/usr/lib/x86_64-linux-gnu/" to configure (might be different >> path based on distro, this is what I use on Debian). Making this behavior >> default would be nice. >> > > For me, the easiest way to find libraries on my system is to use > pkg-config. It's also part of the freedesktop standard ( > http://www.freedesktop.org/wiki/Software/pkg-config/ ). I'm using it > in the pdcurses makefile for SDL2. With pkg-config, it doesn't matter > where a distribution chooses to place libraries, the .pc file holds > the correct location. Not every library has a related .pc file > (although many do). I typically create .pc files for any libraries > that don't already have them. It makes it very easy to switch > locations of libraries or to switch between SDL and SDL2. It's a > simple, standard way for build scripts to locate libraries. If you're > not thrilled with all the dependencies required to build the gnu > version of pkg-config, you can use pkgconf ( > https://github.com/pkgconf/pkgconf ). It's a drop-in replacement for > pkg-config.
The only problem with pkg-config is that it is a pain on Windows that comes with 200Mb of different Unix dependencies. But.. looks like thing got better for Python https://pypi.python.org/pypi/pykg-config/1.3.0 -- anatoly t.