summaryrefslogtreecommitdiff
path: root/lib/talloc/wscript
diff options
context:
space:
mode:
Diffstat (limited to 'lib/talloc/wscript')
-rw-r--r--lib/talloc/wscript8
1 files changed, 8 insertions, 0 deletions
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)
+