From 2bf15566c629587992fa3c71cc5261f2cea300be Mon Sep 17 00:00:00 2001 From: Andrew Tridgell Date: Sat, 3 Apr 2010 23:26:35 +1100 Subject: talloc-waf: install talloc.pc if standalone --- lib/talloc/wscript | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/lib/talloc/wscript b/lib/talloc/wscript index d5b547f3a2..e61d8344d6 100644 --- a/lib/talloc/wscript +++ b/lib/talloc/wscript @@ -23,6 +23,8 @@ def configure(conf): implied_deps='replace'): conf.define('USING_SYSTEM_TALLOC', 1) + conf.env.standalone_talloc = conf.IN_LAUNCH_DIR() + conf.SAMBA_CONFIG_H() @@ -42,3 +44,9 @@ def build(bld): 'testsuite_main.c testsuite.c', deps='talloc', install=False) + + if bld.env.standalone_talloc: + bld.env.PKGCONFIGDIR = '${LIBDIR}/pkgconfig' + bld.env.TALLOC_VERSION = VERSION + bld.PKG_CONFIG_FILES('talloc.pc', vnum=VERSION) + -- cgit