Re: PKG_CHECK_MODULES on system without pkg-config installed?

2011-03-13 Thread Jef Driesen
On 13/03/11 09:33, Vincent Torri wrote: On Sun, Mar 13, 2011 at 8:57 AM, Jef Driesenjefdrie...@hotmail.com wrote: On 10/03/11 11:38, Vincent Torri wrote: You also have to support static linking. Does pkg-config support static linking? When I tried to build my own project, which checks

RE: PKG_CHECK_MODULES on system without pkg-config installed?

2011-03-11 Thread Xochitl Lunde
This is not meant to sound like a troll, but: is anyone really *really* using static linking in 2011? I use static linking every day for the embedded target.

Re: PKG_CHECK_MODULES on system without pkg-config installed?

2011-03-11 Thread Baurzhan Ismagulov
On Thu, Mar 10, 2011 at 12:03:16PM +, Roger Leigh wrote: This is not meant to sound like a troll, but: is anyone really *really* using static linking in 2011? I use it heavily e.g. to build debug tools for embedded systems where the rootfs doesn't match my cross-toolchain. With kind

Re: PKG_CHECK_MODULES on system without pkg-config installed?

2011-03-11 Thread Steffen Dettmer
On Thu, Mar 10, 2011 at 1:03 PM, Roger Leigh rle...@codelibre.net wrote: [...] This is not meant to sound like a troll, but: is anyone really *really* using static linking in 2011? Yes, in my company we link almost all our own libraries statically to our own applications. (however, we use some

RE: PKG_CHECK_MODULES on system without pkg-config installed?

2011-03-10 Thread Jef Driesen
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

Re: PKG_CHECK_MODULES on system without pkg-config installed?

2011-03-10 Thread Miles Bader
Jef Driesen jefdrie...@hotmail.com writes: 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

Re: PKG_CHECK_MODULES on system without pkg-config installed?

2011-03-10 Thread Miles Bader
Miles Bader mi...@gnu.org writes: I don't even try to fully support systems without pkg-config, I basically just want a fallback so I can get some sort of build on them, maybe with some features disabled. I should note that although this is my tactic, it's not actually a very important point.

Re: PKG_CHECK_MODULES on system without pkg-config installed?

2011-03-10 Thread Dave Hart
On Thu, Mar 10, 2011 at 10:02 UTC, Jef Driesen jefdrie...@hotmail.com wrote: 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

Re: PKG_CHECK_MODULES on system without pkg-config installed?

2011-03-10 Thread Roger Leigh
On Thu, Mar 10, 2011 at 11:38:16AM +0100, Vincent Torri wrote: On Thu, Mar 10, 2011 at 11:02 AM, Jef Driesen jefdrie...@hotmail.comwrote: 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

Re: PKG_CHECK_MODULES on system without pkg-config installed?

2011-03-10 Thread Dave Hart
On Thu, Mar 10, 2011 at 1:53 PM, Jef Driesen jefdrie...@hotmail.com wrote: You don't have to convince me of the advantages of using pkg-config. I want to use pkg-config for exactly the same reasons as you explain. But when I tried to build my project on a system without pkg-config installed it

Re: PKG_CHECK_MODULES on system without pkg-config installed?

2011-03-10 Thread Miles Bader
Roger Leigh rle...@codelibre.net writes: This is not meant to sound like a troll, but: is anyone really *really* using static linking in 2011? Sure; it's very useful for specialized libraries that won't be widely used enough to merit the effort to build and install as dynamic libraries.

Re: PKG_CHECK_MODULES on system without pkg-config installed?

2011-03-10 Thread Ralf Wildenhues
Hello, * Roger Leigh wrote on Thu, Mar 10, 2011 at 01:03:16PM CET: This is not meant to sound like a troll, but: is anyone really *really* using static linking in 2011? I'd love to answer no, but at least parts of the HPC crowd will do almost anything to get a couple percent more performance

Re: PKG_CHECK_MODULES on system without pkg-config installed?

2011-03-10 Thread Daniel Herring
On Fri, 11 Mar 2011, Ralf Wildenhues wrote: * Roger Leigh wrote on Thu, Mar 10, 2011 at 01:03:16PM CET: This is not meant to sound like a troll, but: is anyone really *really* using static linking in 2011? I'd love to answer no, but at least parts of the HPC crowd will do almost anything to

Re: PKG_CHECK_MODULES on system without pkg-config installed?

2011-03-09 Thread Miles Bader
Jef Driesen jefdrie...@hotmail.com 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

Re: PKG_CHECK_MODULES on system without pkg-config installed?

2011-03-06 Thread Jef Driesen
On 05/03/11 23:16, Vincent Torri wrote: On Sat, Mar 5, 2011 at 9:06 AM, Jef Driesenjefdrie...@hotmail.com wrote: I'm trying to use the PKG_CHECK_MODULES macro to check for an external library: PKG_CHECK_MODULES([LIBUSB], [libusb-1.0], [have_libusb=yes], [have_libusb=no]) This works great,

Re: PKG_CHECK_MODULES on system without pkg-config installed?

2011-03-06 Thread Jef Driesen
On 06/03/11 14:23, Vincent Torri wrote: On Sun, Mar 6, 2011 at 2:08 PM, Jef Driesenjefdrie...@hotmail.com wrote: On 05/03/11 23:16, Vincent Torri wrote: On Sat, Mar 5, 2011 at 9:06 AM, Jef Driesenjefdrie...@hotmail.com wrote: I'm trying to use the PKG_CHECK_MODULES macro to check for an

Re: PKG_CHECK_MODULES on system without pkg-config installed?

2011-03-06 Thread Miles Bader
Jef Driesen jefdrie...@hotmail.com writes: is pkg.m4 in /usr/share/aclocal ? No. I suppose that file is only present if pkg-config is installed? I'm trying to build on Mac OS X in case that would matter. I use some hacks to make the resulting configure script work even if autoconf can't find