summaryrefslogtreecommitdiff
path: root/buildtools
diff options
context:
space:
mode:
authorAndreas Schneider <asn@samba.org>2014-02-28 15:50:02 +0100
committerKarolin Seeger <kseeger@samba.org>2014-04-01 09:26:39 +0200
commitb1d86ee5588ade222594fc18dd7e10dc9f86dc40 (patch)
tree48b5da4013ebda77d429176f94cad64ed20daf01 /buildtools
parent4ba0f7ab45b62b3f127b7b0bb620d9ef9e39f983 (diff)
downloadsamba-b1d86ee5588ade222594fc18dd7e10dc9f86dc40.tar.gz
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 99e0540ca3..8f13e28927 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)