summaryrefslogtreecommitdiff
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:08:07 +0200
commitf46447a3400bb17fc194485bedcf6ee1c281dff1 (patch)
treefe8487961b05ea0a1a723c0720c344d521c98e7e
parent503d0ff6173a815872ffb1117ebca2c3808df398 (diff)
downloadsamba-f46447a3400bb17fc194485bedcf6ee1c281dff1.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>
-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)