From: Sebastian Harl Date: Thu, 27 Dec 2007 15:40:30 +0000 (+0100) Subject: configure.in: Copy sources of the Perl bindings to the build directory. X-Git-Tag: collectd-4.2.3~2 X-Git-Url: https://git.verplant.org/?a=commitdiff_plain;h=a73f05bb8eeff45afe22363a624d37aa92f1a68c;p=collectd.git configure.in: Copy sources of the Perl bindings to the build directory. 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 Signed-off-by: Florian Forster --- diff --git a/configure.in b/configure.in index 75bc00f4..3c632c70 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 <