Define the U32_ALIGNMENT_REQUIRED only if it's not already defined.
[p5sagit/p5-mst-13.2.git] / ext / Digest / MD5 / Makefile.PL
1 require 5.004;
2 use strict;
3 use Config qw(%Config);
4 use ExtUtils::MakeMaker;
5
6 my @extra;
7
8 unless ($Config{d_u32align}) {
9     @extra = (DEFINE => "-DU32_ALIGNMENT_REQUIRED")
10         if !($Config{'byteorder'} eq '1234' ||
11              $Config{'byteorder'} eq '4321');
12 }
13
14 WriteMakefile(
15     'NAME'         => 'Digest::MD5',
16     'VERSION_FROM' => 'MD5.pm',
17     @extra,
18     'dist'         => { COMPRESS => 'gzip -9f', SUFFIX => 'gz', },
19 );
20 exit;
21