build: do full SAMBA_CHECK_PERL() check in configure
authorMichael Adam <obnox@samba.org>
Mon, 25 Aug 2014 23:31:17 +0000 (01:31 +0200)
committerStefan Metzmacher <metze@samba.org>
Fri, 5 Sep 2014 17:47:06 +0000 (19:47 +0200)
...instead of only checking for the perl binary

This autodetects PERL_LIB_INSTALL_DIR and removes the
need of the --with-perl-lib-install-dir when using a --prefix!=/usr.

BUG: https://bugzilla.samba.org/show_bug.cgi?id=10472

Signed-off-by: Michael Adam <obnox@samba.org>
wscript

diff --git a/wscript b/wscript
index 7b43c580ffde4e34846fa3aa1fee1c8d678ba2b8..73c113cc0946bd07235fdb8218cb9abaa8d1c805 100644 (file)
--- a/wscript
+++ b/wscript
@@ -99,7 +99,7 @@ def configure(conf):
     conf.env.replace_add_global_pthread = True
     conf.RECURSE('lib/replace')
 
-    conf.find_program('perl', var='PERL', mandatory=True)
+    conf.SAMBA_CHECK_PERL(mandatory=True)
     conf.find_program('xsltproc', var='XSLTPROC')
 
     conf.SAMBA_CHECK_PYTHON(mandatory=True, version=(2,5,0))