Re: [perl #51636] segmentation fault with array ties
[p5sagit/p5-mst-13.2.git] / ext / Digest / SHA / Makefile.PL
1 require 5.006000;
2
3 use ExtUtils::MakeMaker;
4 use Getopt::Std;
5 use Config;
6
7 my %opts;
8 getopts('tx', \%opts);
9
10 my @defines = ('-DSHA_PERL_MODULE');
11
12 push(@defines, '-DSHA_THREAD_SAFE') if $opts{'t'};
13 push(@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         
20 if ($Config{archname} =~ /^i[3456]86/) {
21         push(@defines, '-DSHA_STO_CLASS=static') unless $opts{'t'};
22 }
23
24 my $define = join(' ', @defines);
25
26 WriteMakefile(
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 );