3 use ExtUtils::MakeMaker;
10 my @defines = ('-DSHA_PERL_MODULE');
12 push(@defines, '-DSHA_THREAD_SAFE') if $opts{'t'};
13 push(@defines, '-DNO_SHA_384_512') if $opts{'x'};
15 # Configure SHA source to use static arrays for
16 # message schedules if compiling on Intel platforms.
17 # This seems to speed things up a bit. However,
18 # DON'T do this if thread-safe option is in force.
20 if ($Config{archname} =~ /^i[3456]86/) {
21 push(@defines, '-DSHA_STO_CLASS=static') unless $opts{'t'};
24 my $define = join(' ', @defines);
27 'NAME' => 'Digest::SHA',
28 'VERSION_FROM' => 'SHA.pm',
30 'AUTHOR' => 'Mark Shelor <mshelor@cpan.org>',
32 MAN3PODS => {}, # Pods will be built by installman.