summaryrefslogtreecommitdiff
path: root/source4/build
diff options
context:
space:
mode:
Diffstat (limited to 'source4/build')
-rw-r--r--source4/build/smb_build/env.pm14
1 files changed, 11 insertions, 3 deletions
diff --git a/source4/build/smb_build/env.pm b/source4/build/smb_build/env.pm
index 09d8eb1536..c090fb83eb 100644
--- a/source4/build/smb_build/env.pm
+++ b/source4/build/smb_build/env.pm
@@ -54,9 +54,9 @@ sub _set_config($$)
}
}
-sub PkgConfig($$$$$$$)
+sub PkgConfig($$$$$$$$)
{
- my ($self,$path,$name,$libs,$cflags,$version,$desc) = @_;
+ my ($self,$path,$name,$libs,$cflags,$version,$desc,$hasmodules) = @_;
print __FILE__.": creating $path\n";
@@ -67,9 +67,14 @@ prefix=$self->{config}->{prefix}
exec_prefix=$self->{config}->{exec_prefix}
libdir=$self->{config}->{libdir}
includedir=$self->{config}->{includedir}
-
__EOF__
+ if ($hasmodules) {
+ print OUT "modulesdir=$self->{config}->{modulesdir}\n" ;
+ }
+
+ print OUT "\n";
+
print OUT "Name: $name\n";
if (defined($desc)) {
print OUT "Description: $desc\n";
@@ -77,6 +82,9 @@ __EOF__
print OUT "Version: $version\n";
print OUT "Libs: -L\${libdir} $libs\n";
print OUT "Cflags: -I\${includedir} $cflags\n";
+ if ($hasmodules) {
+ print OUT "Modulesdir: \${modulesdir}\n";
+ }
close(OUT);
}