Commit | Line | Data |
d9b022a1 |
1 | #!/usr/bin/perl -w |
9b8e6254 |
2 | use 5.008; |
6cc998b7 |
3 | use ExtUtils::MakeMaker; |
d9b022a1 |
4 | use strict; |
6cc998b7 |
5 | |
5f03b77e |
6 | use Config; |
7 | (unpack "B*", pack "N", $Config{ptrsize}) =~ /^0+1(0+)$/ |
390777e7 |
8 | or die "Your pointer size of $Config{ptrsize} is very confusing"; |
5f03b77e |
9 | my $ptr_bits = length $1; |
10 | |
1a36ac09 |
11 | WriteMakefile( |
390777e7 |
12 | NAME => 'Devel::Size', |
13 | VERSION_FROM => 'lib/Devel/Size.pm', |
14 | DEFINE => "-DALIGN_BITS=$ptr_bits", |
33d464ba |
15 | (eval $ExtUtils::MakeMaker::VERSION >= 6.47 ? (MIN_PERL_VERSION => '5.008') : ()), |
16 | (eval $ExtUtils::MakeMaker::VERSION >= 6.31 ? (LICENSE => 'perl') : ()), |
6cc998b7 |
17 | ); |