[collectd] [PATCH 2/2] configure.in: Copy sources of the Perl bindings to the build directory.
Sebastian Harl
sh at tokkee.org
Thu Dec 27 16:40:30 CET 2007
As the Perl build system around ExtUtils::MakeMaker doesn't know how to
separate source and build directories, all relevant source files have to be
available in the build directory.
This is an alternative patch for the problem reported by Michael Tiernan.
Signed-off-by: Sebastian Harl <sh at tokkee.org>
---
configure.in | 15 +++++++++++++++
1 files changed, 15 insertions(+), 0 deletions(-)
diff --git a/configure.in b/configure.in
index 75bc00f..3c632c7 100644
--- a/configure.in
+++ b/configure.in
@@ -1936,6 +1936,21 @@ then
with_perl_bindings="yes ($PERL_BINDINGS_OPTIONS)"
fi
+if test ".." != "$ac_top_srcdir"
+then
+ # we're not building from the source tree
+ for file in \
+ bindings/perl/Collectd/Makefile.PL \
+ bindings/perl/Collectd/Unixsock.pm \
+ bindings/perl/Collectd.pm \
+ bindings/perl/Makefile.PL
+ do
+ dir=`dirname $file`
+ mkdir -p $dir
+ cp src/$ac_top_srcdir/$file $file
+ done
+fi
+
cat <<EOF;
Configuration:
--
1.5.3.7.1141.g4eb39
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: Digital signature
Url : http://mailman.verplant.org/pipermail/collectd/attachments/20071227/95d69101/attachment.pgp
More information about the collectd
mailing list