summaryrefslogtreecommitdiffstats
path: root/buildtools
diff options
context:
space:
mode:
authorAndreas Schneider <asn@samba.org>2014-02-28 15:50:02 +0100
committerStefan Metzmacher <metze@samba.org>2014-03-06 09:59:43 +0100
commit48f0183dbeddd7bdf333a40fe0d3e1c7e7fe00f2 (patch)
tree66586e58b4ae9bd865d3a7b25b2c945468a2c275 /buildtools
parent04685ff4eed9535769d6a5feee7353f1796a4389 (diff)
downloadsamba-48f0183dbeddd7bdf333a40fe0d3e1c7e7fe00f2.tar.gz
samba-48f0183dbeddd7bdf333a40fe0d3e1c7e7fe00f2.tar.xz
samba-48f0183dbeddd7bdf333a40fe0d3e1c7e7fe00f2.zip
buildtools: Add perl vendorlib configure option.
After this patch has been pushed, we need to change autobuild to compile with this option or we will not be able to install pidl. Signed-off-by: Andreas Schneider <asn@samba.org> Reviewed-by: Stefan Metzmacher <metze@samba.org>
Diffstat (limited to 'buildtools')
-rw-r--r--buildtools/wafadmin/Tools/perl.py10
1 files changed, 10 insertions, 0 deletions
diff --git a/buildtools/wafadmin/Tools/perl.py b/buildtools/wafadmin/Tools/perl.py
index 99e0540ca3a..8f13e289271 100644
--- a/buildtools/wafadmin/Tools/perl.py
+++ b/buildtools/wafadmin/Tools/perl.py
@@ -103,6 +103,11 @@ def check_perl_ext_devel(conf):
else:
conf.env.PERL_VENDORARCH_DIR = read_out('print $Config{vendorarch}')[0]
+ if getattr(Options.options, 'perl_vendorlib_dir', None):
+ conf.env.PERL_VENDORLIB_DIR = Options.options.perl_vendorlib_dir
+ else:
+ conf.env.PERL_VENDORLIB_DIR = read_out('print $Config{vendorlib}')[0]
+
def set_options(opt):
opt.add_option("--with-perl-binary", type="string", dest="perlbinary", help = 'Specify alternate perl binary', default=None)
@@ -112,3 +117,8 @@ def set_options(opt):
help = ('Specify directory where to install arch specific files'),
default=None)
+ opt.add_option("--with-perl-vendorlib",
+ type="string",
+ dest="perl_vendorlib_dir",
+ help = ('Specify directory where to install vendor specific files'),
+ default=None)