On Mon, Oct 13, 2008 at 9:51 PM, Zack Weinberg <[EMAIL PROTECTED]> wrote: > I remember writing a bunch of m4 to deal with [varying names of .pc files] > but it > doesn't seem to be on this computer; I'll look on the other one tomorrow.
Found it. The attached file goes in the m4/ directory, and is used like so: # All of these libraries can be probed for by some combination of # pkg-config and foobar-config, but it's not as simple as it ought to # be, hence the macros. PKG_PROG_PKG_CONFIG MTN_3RDPARTY_LIB(botan) MTN_3RDPARTY_LIB(idn) MTN_3RDPARTY_LIB(lua) MTN_3RDPARTY_LIB(netxx) MTN_3RDPARTY_LIB(pcre) MTN_3RDPARTY_LIB(sqlite) MTN_REMOVE_REDUNDANT_LIB_SWITCHES Some of the logic in the file is specific to the setup on the library-build branch; in particular, it probably makes more sense in the .stripped context to make the minimum version requirement for each library be a second argument to MTN_3RDPARTY_LIB rather than digging it out of the metadata of the bundled copy. Aside to Jack Lloyd: It would be nice if botan provided a .pc file as well as the botan-config executable. zw
thirdparty.m4
Description: Binary data
_______________________________________________ Monotone-devel mailing list Monotone-devel@nongnu.org http://lists.nongnu.org/mailman/listinfo/monotone-devel