[collectd] [PATCH] configure: Get the check for libperl in sync with the way it's used.

Sebastian Harl sh at tokkee.org
Thu Sep 4 15:55:30 CEST 2008


 * Define PERL_NO_GET_CONTEXT.
 * Use the API functions without the Perl_ prefix.

Signed-off-by: Sebastian Harl <sh at tokkee.org>
---
 configure.in |    5 +++--
 1 files changed, 3 insertions(+), 2 deletions(-)

diff --git a/configure.in b/configure.in
index 040ccda..d4b9845 100644
--- a/configure.in
+++ b/configure.in
@@ -1657,13 +1657,14 @@ then
     AC_LINK_IFELSE(
       AC_LANG_PROGRAM(
       [[
+#define PERL_NO_GET_CONTEXT
 #include <EXTERN.h>
 #include <perl.h>
 #include <XSUB.h>
       ]],
       [[
-       PerlInterpreter *perl = NULL;
-       Perl_load_module (perl, PERL_LOADMOD_NOIMPORT,
+       dTHX;
+       load_module (PERL_LOADMOD_NOIMPORT,
 			 newSVpv ("Collectd::Plugin::FooBar", 24),
 			 Nullsv);
       ]]),
-- 
1.6.0.90.g436ed

-------------- 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/20080904/7f5b6f40/attachment.pgp 


More information about the collectd mailing list