s3-selftest: support differing VFSLIBDIR in autoconf and waf build.
[amitay/samba.git] / selftest / target / Samba3.pm
index 3d1ae4e611c3d7d9eab2402e6148126ce98c61c8..279fc65c7bba309ec2e73607771119dfe8185ae0 100644 (file)
@@ -356,7 +356,7 @@ sub provision($$$$$$)
 
        my $prefix_abs = abs_path($prefix);
        my $bindir_abs = abs_path($self->{bindir});
-       my $vfs_modulesdir_abs = $bindir_abs;
+       my $vfs_modulesdir_abs = ($ENV{VFSLIBDIR} or $bindir_abs);
 
        my @dirs = ();