X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=blobdiff_plain;f=Makefile.PL;h=cf7f30e41c8ab2c69e3b39ced29c39809f6d2d0a;hb=717b8bce61b131ff53f4fdfa81a25fa2c6d2286a;hp=90be8ea7230ec61fcf4cde6ae9ac56958a0d311e;hpb=2074d68be95dd120da75630626cc72b2c429b48e;p=p5sagit%2Fstrictures.git diff --git a/Makefile.PL b/Makefile.PL index 90be8ea..cf7f30e 100644 --- a/Makefile.PL +++ b/Makefile.PL @@ -1,11 +1,11 @@ use strict; use warnings FATAL => 'all'; use 5.006; +require "inc/ExtUtils/HasCompiler.pm"; my $have_compiler = ! parse_args()->{PUREPERL_ONLY} - && eval { require ExtUtils::CBuilder; 1 } - && ExtUtils::CBuilder->new->have_compiler; + && ExtUtils::HasCompiler::can_compile_loadable_object(quiet => 1); my %extra_prereqs = ( indirect => 0,