Re: [perl #51636] segmentation fault with array ties
[p5sagit/p5-mst-13.2.git] / ext / Digest / SHA / Makefile.PL
CommitLineData
128cbdba 1require 5.006000;
2
6bc89f92 3use ExtUtils::MakeMaker;
4use Getopt::Std;
5use Config;
6
7my %opts;
8getopts('tx', \%opts);
9
10my @defines = ('-DSHA_PERL_MODULE');
11
12push(@defines, '-DSHA_THREAD_SAFE') if $opts{'t'};
13push(@defines, '-DNO_SHA_384_512') if $opts{'x'};
14
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.
19
20if ($Config{archname} =~ /^i[3456]86/) {
21 push(@defines, '-DSHA_STO_CLASS=static') unless $opts{'t'};
22}
23
24my $define = join(' ', @defines);
25
26WriteMakefile(
27 'NAME' => 'Digest::SHA',
28 'VERSION_FROM' => 'SHA.pm',
29 'PREREQ_PM' => {},
30 'AUTHOR' => 'Mark Shelor <mshelor@cpan.org>',
31 'LIBS' => [''],
32 MAN3PODS => {}, # Pods will be built by installman.
33 'DEFINE' => $define,
34 'INC' => '-I.',
35 'NO_META' => 1,
36);