Alt-Alien-FFI-System
view release on metacpan or search on metacpan
lib/Alien/FFI.pm view on Meta::CPAN
use 5.008001;
use Carp qw( croak );
# ABSTRACT: Get libffi compiler and linker flags
our $VERSION = '0.23'; # VERSION
sub new
{
my($class) = @_;
bless {}, $class;
}
my $pkg_config;
foreach my $try ($ENV{PKG_CONFIG}, 'pkg-config', 'pkgconf')
{
next unless defined $try;
require IPC::Cmd;
if(IPC::Cmd::can_run($try))
{
( run in 1.995 second using v1.01-cache-2.11-cpan-de7293f3b23 )