This is a live mirror of the Perl 5 development currently hosted at https://github.com/perl/perl5
av_fetch: de-duplicate small bit of code
[perl5.git] / dist / Storable / Makefile.PL
CommitLineData
7a6a85bf
RG
1#
2# Copyright (c) 1995-2000, Raphael Manfredi
3#
9e21b3d0
JH
4# You may redistribute only under the same terms as Perl 5, as specified
5# in the README file that comes with the distribution.
7a6a85bf 6#
7a6a85bf
RG
7
8use ExtUtils::MakeMaker;
9use Config;
10
11WriteMakefile(
527f7b64
AMS
12 NAME => 'Storable',
13 DISTNAME => "Storable",
a2307be4
NC
14# We now ship this in t/
15# PREREQ_PM => { 'Test::More' => '0.41' },
70e1279a 16 PREREQ_PM => { XSLoader => 0 },
dcf2e277 17 INSTALLDIRS => $] >= 5.007 ? 'perl' : 'site',
527f7b64 18 VERSION_FROM => 'Storable.pm',
70e1279a
NC
19 ($ExtUtils::MakeMaker::VERSION > 6.45 ?
20 (META_MERGE => { resources =>
99295a74
AMS
21 { bugtracker => 'http://rt.perl.org/perlbug/' }
22 },
70e1279a 23 ) : ()),
527f7b64 24 dist => { SUFFIX => 'gz', COMPRESS => 'gzip -f' },
7a6a85bf 25);
ee0f7aac
NC
26
27my $ivtype = $Config{ivtype};
28
29# I don't know if the VMS folks ever supported long long on 5.6.x
30if ($ivtype and $ivtype eq 'long long' and $^O !~ /^MSWin/) {
31 print <<'EOM';
32
33You appear to have a perl configured to use 64 bit integers in its scalar
34variables. If you have existing data written with an earlier version of
35Storable which this version of Storable refuses to load with a
36
37 Byte order is not compatible
38
39error, then please read the section "64 bit data in perl 5.6.0 and 5.6.1"
40in the Storable documentation for instructions on how to read your data.
41
42(You can find the documentation at the end of Storable.pm in POD format)
43
44EOM
45}