More prereqs
[p5sagit/Devel-Size.git] / Makefile.PL
1 #!/usr/bin/perl -w
2 use 5.005;
3 use ExtUtils::MakeMaker;
4 use strict;
5
6 use Config;
7 (unpack "B*", pack "N", $Config{ptrsize}) =~ /^0+1(0+)$/
8     or die "Your pointer size of $Config{ptrsize} is very confusing";
9 my $ptr_bits = length $1;
10
11 WriteMakefile(
12     OPTIMIZE => "-g",
13     NAME => 'Devel::Memory',
14     VERSION_FROM => 'lib/Devel/Memory.pm',
15     DEFINE => "-DALIGN_BITS=$ptr_bits",
16     PREREQ_PM => {
17         'Test::More' => 0,
18         'JSON::XS' => 0,
19         'HTML::Entities' => 0,
20         'Mojolicious::Lite' => 0,
21         'Devel::Dwarn' => 0,
22         XSLoader => 0,
23     },
24     EXE_FILES => [ 'bin/dmemtree.pl' ],
25     (eval $ExtUtils::MakeMaker::VERSION >= 6.47 ? (MIN_PERL_VERSION => '5.005') : ()),
26     (eval $ExtUtils::MakeMaker::VERSION >= 6.31 ? (LICENSE => 'perl') : ()),
27 );