-use ExtUtils::MakeMaker;\r
-use Config;\r
-\r
-my %options = ( \r
- NAME => 'Devel::Size',\r
- LIBS => $Config{cc} eq 'gcc' || $Config{cc} eq 'cc' ? ['-lstdc++'] : '',\r
- VERSION_FROM => 'lib/Devel/Size.pm',\r
- CC => $Config{cc} eq 'cl' ? 'cl' : 'g++',\r
-);\r
-\r
-WriteMakefile(%options);\r
+use 5.008;
+use ExtUtils::MakeMaker;
+
+WriteMakefile(
+ NAME => 'Devel::Size',
+ VERSION_FROM => 'lib/Devel/Size.pm',
+ ($ExtUtils::MakeMaker::VERSION >= 6.47 ? (MIN_PERL_VERSION => '5.008') : ()),
+ ($ExtUtils::MakeMaker::VERSION >= 6.30 ? (LICENSE => 'perl') : ()),
+);