Commit | Line | Data |
3357b1b1 |
1 | require 5.004; |
2 | use strict; |
3 | use Config qw(%Config); |
4 | use ExtUtils::MakeMaker; |
5 | |
6 | my @extra; |
92dc3567 |
7 | |
8 | unless ($Config{d_u32align}) { |
9 | @extra = (DEFINE => "-DU32_ALIGNMENT_REQUIRED") |
10 | if !($Config{'byteorder'} eq '1234' || |
11 | $Config{'byteorder'} eq '4321'); |
12 | } |
55315086 |
13 | my @optimize = (); |
14 | if ($^O eq 'VMS') { |
15 | if (defined($Config{ccname})) { |
16 | if ($Config{ccversion} <= 50390006 && grep(/VMS_VAX/, @INC) && ($Config{ccname} eq 'DEC')) { |
17 | @optimize = ("OPTIMIZE","/Optimize=(NODISJOINT)"); |
18 | } |
19 | } |
20 | } |
3357b1b1 |
21 | |
22 | WriteMakefile( |
23 | 'NAME' => 'Digest::MD5', |
24 | 'VERSION_FROM' => 'MD5.pm', |
df39e595 |
25 | MAN3PODS => {}, # Pods will be built by installman. |
3357b1b1 |
26 | @extra, |
27 | 'dist' => { COMPRESS => 'gzip -9f', SUFFIX => 'gz', }, |
55315086 |
28 | @optimize |
3357b1b1 |
29 | ); |
30 | exit; |
31 | |