X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=blobdiff_plain;f=Makefile.PL;h=f3168959f69059a5fe4143ca35c5744e0cb097d0;hb=63b80fbc31de4869b252f9ec3a94fd90d4a0e9f2;hp=8bb9ae06e5b7691d3bd9ca91bcab7c27a269d4bf;hpb=271f63c4bd9fc714cc5f4aae37cc8f6c3b9e148b;p=p5sagit%2FJSON-MaybeXS.git diff --git a/Makefile.PL b/Makefile.PL index 8bb9ae0..f316895 100644 --- a/Makefile.PL +++ b/Makefile.PL @@ -74,8 +74,8 @@ for (qw(configure build test runtime)) { # (we also always recommend Cpanel::JSON::XS, just to make sure.) $WriteMakefileArgs{PREREQ_PM}{'Cpanel::JSON::XS'} = '2.3310' if not parse_args()->{PUREPERL_ONLY} - and not eval { require JSON::XS; 1; } - and can_xs(); + and ((eval { require Cpanel::JSON::XS; 1 } and not eval { Cpanel::JSON::XS->VERSION('2.3310'); 1 }) + or (not eval { require JSON::XS; 1; } and can_xs())); $WriteMakefileArgs{MIN_PERL_VERSION} = delete $WriteMakefileArgs{PREREQ_PM}{perl} || 0;