stringify version before comparing, as recommended by Zefram
[p5sagit/strictures.git] / Makefile.PL
index 27d6a21..8428b85 100644 (file)
@@ -1,11 +1,12 @@
 use strict;
 use warnings FATAL => 'all';
 use 5.006;
-require "inc/ExtUtils/HasCompiler.pm";
+use lib 'inc';
+use ExtUtils::HasCompiler 'can_compile_loadable_object';
 
 my $have_compiler
   = ! parse_args()->{PUREPERL_ONLY}
-  && ExtUtils::HasCompiler::can_compile_loadable_object(quiet => 1);
+  && can_compile_loadable_object(quiet => 1);
 
 my %extra_prereqs = (
   indirect => 0,
@@ -53,11 +54,12 @@ my %META = (
   no_index => {
     directory => [ 't', 'xt', 'inc' ]
   },
+  x_authority => 'cpan:MSTROUT',
 );
 
 my %MM_ARGS = (
   PREREQ_PM => {
-    ($] >= 5.008004 && $have_compiler ? %extra_prereqs : () )
+    ("$]" >= 5.008004 && $have_compiler ? %extra_prereqs : () )
   },
 );
 
@@ -75,7 +77,7 @@ sub parse_args {
 
 ## BOILERPLATE ###############################################################
 require ExtUtils::MakeMaker;
-(do 'maint/Makefile.PL.include' or die $@) unless -f 'META.yml';
+(do './maint/Makefile.PL.include' or die $@) unless -f 'META.yml';
 
 # have to do this since old EUMM dev releases miss the eval $VERSION line
 my $eumm_version  = eval $ExtUtils::MakeMaker::VERSION;