IO::Compress::* 2.011
[p5sagit/p5-mst-13.2.git] / ext / Compress / Zlib / Makefile.PL
index d2d2e1a..e79a132 100755 (executable)
@@ -3,11 +3,12 @@
 use strict ;
 require 5.004 ;
 
-$::VERSION = '2.003' ;
+$::VERSION = '2.011' ;
 
 use private::MakeUtil;
 use ExtUtils::MakeMaker 5.16 ;
 
+
 UpDowngrade(getPerlFiles('MANIFEST')) 
     unless $ENV{PERL_CORE};
 
@@ -42,7 +43,39 @@ WriteMakefile(
         : ()
     ),
 
+    INSTALLDIRS => ($] >= 5.009 ? 'perl' : 'site'),
+
+    (
+    $] >= 5.009 && ! $ENV{PERL_CORE}
+        ? (INST_LIB    => 'blib/arch')
+        : ()
+    ),
+
+    ((ExtUtils::MakeMaker->VERSION() gt '6.30') ?
+        ('LICENSE'  => 'perl')         : ()),    
+
 ) ;
 
+# 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