diff options
Diffstat (limited to 'ext/Compress/Zlib/Makefile.PL')
-rwxr-xr-x | ext/Compress/Zlib/Makefile.PL | 24 |
1 files changed, 23 insertions, 1 deletions
diff --git a/ext/Compress/Zlib/Makefile.PL b/ext/Compress/Zlib/Makefile.PL index a7e3a6ad7c..f09008e663 100755 --- a/ext/Compress/Zlib/Makefile.PL +++ b/ext/Compress/Zlib/Makefile.PL @@ -3,11 +3,12 @@ use strict ; require 5.004 ; -$::VERSION = '2.004' ; +$::VERSION = '2.005' ; use private::MakeUtil; use ExtUtils::MakeMaker 5.16 ; + UpDowngrade(getPerlFiles('MANIFEST')) unless $ENV{PERL_CORE}; @@ -47,5 +48,26 @@ WriteMakefile( ) ; +# Check for Compress::Zlib version 1. +eval "require Compress::Zlib; " ; +if ( ! $ENV{PERL_CORE} && ! $@ && $Compress::Zlib::VERSION < 2) +{ + my $ver = $Compress::Zlib::VERSION ; + print <<EOM + +I see you already have Compress::Zlib version $ver installed. +Version 1 MUST be removed for version 2 to operate correctly. + +The easiest way to do that is to install Compress::Zlib like this + + make install UNINST=1 + +If you run the CPAN shell run this before installing Compress::Zlib + + o conf make_install_arg UNINST=1 + +EOM +} + # end of file Makefile.PL |