From: gfx Date: Thu, 12 Nov 2009 04:42:32 +0000 (+0900) Subject: Update M::I::XSUtil to 0.17 X-Git-Tag: 0.40_06~24 X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=commitdiff_plain;h=884bf37f78889fef10be116db24951cc2886d72b;p=gitmo%2FMouse.git Update M::I::XSUtil to 0.17 --- diff --git a/Makefile.PL b/Makefile.PL index 1dc902a..5b8329c 100755 --- a/Makefile.PL +++ b/Makefile.PL @@ -2,6 +2,9 @@ use strict; 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: $!"; @@ -14,8 +17,6 @@ tests 't/*.t t/*/*.t'; # > 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! @@ -43,19 +44,12 @@ if($] < 5.008_001){ } 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();