Subject: | Inline::Lua patch to replace lua-config with pkg-config |
Date: | Tue, 18 Dec 2007 12:42:28 -0800 |
To: | bug-Inline-Lua [...] rt.cpan.org |
From: | James Wright <jamesw [...] bsdhosting.co.za> |
pkg-config is a more portable solution for getting the libs and includes.
--- Makefile.PL.orig Mon Dec 3 11:37:58 2007
+++ Makefile.PL Mon Dec 3 11:38:28 2007
@@ -9,11 +9,11 @@
my $meth = shift;
# lua-config is Debian specific
if ($meth == LUA_LIBS) {
- chomp (my $val = `lua-config --libs` || "-llua -llualib");
+ chomp (my $val = `pkg-config lua --libs` || "-llua -llualib");
return $val;
}
if ($meth == LUA_INC) {
- chomp (my $val = `lua-config --include` || "");
+ chomp (my $val = `pkg-config lua --cflags` || "");
return $val;
}
}