From: Karen Etheridge Date: Sat, 6 Oct 2012 20:25:24 +0000 (-0700) Subject: require the pragmas if a compiler is present X-Git-Tag: v1.005002~5 X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=commitdiff_plain;h=5468e090435bd3cdba396ad5f3267a7478227339;p=p5sagit%2Fstrictures.git require the pragmas if a compiler is present --- diff --git a/Makefile.PL b/Makefile.PL index cf63958..2bb28b9 100644 --- a/Makefile.PL +++ b/Makefile.PL @@ -36,4 +36,13 @@ WriteMakefile( }, }, }, + + (eval { require ExtUtils::CBuilder; 1 } + and ExtUtils::CBuilder->new->have_compiler) + ? (PREREQ_PM => { + indirect => 0, + multidimensional => 0, + 'bareword::filehandles' => 0, + }) + : (), );