use warnings;
use inc::Module::Install;
+# for co-developpers
+use Module::Install::XSUtil 0.17;
+
system($^X, 'author/generate-mouse-tiny.pl', 'lib/Mouse/Tiny.pm') == 0
or warn "Cannot generate Mouse::Tiny: $!";
# > Fixed looks_like_number(undef) to return false for perl >= 5.009002
requires 'Scalar::Util' => 1.14;
-configure_requires 'ExtUtils::CBuilder';
-
test_requires 'Test::More' => 0.88;
test_requires 'Test::Exception' => 0.27;
# test_requires 'Test::Output' => 0.16; # too many dependencies!
}
if(!defined $use_xs){
- $use_xs = eval {
- require ExtUtils::CBuilder;
- ExtUtils::CBuilder->new(quiet => 1)->have_compiler();
- };
+ $use_xs = cc_available();
}
if($use_xs){
print "Mouse configured with XS.\n",
"NOTE: You can try --pp option to configure Mouse with Pure Perl.\n";
- ;
-
- require Module::Install::XSUtil;
- Module::Install::XSUtil->VERSION(0.16); # for co-developpers
use_ppport(3.19);
cc_warnings();