Fix another concatenated filepath in a test for Digest::SHA.
[p5sagit/p5-mst-13.2.git] / ext / Digest / SHA / Makefile.PL
1 use ExtUtils::MakeMaker;
2 use Getopt::Std;
3 use Config;
4
5 my %opts;
6 getopts('tx', \%opts);
7
8 my @defines = ('-DSHA_PERL_MODULE');
9
10 push(@defines, '-DSHA_THREAD_SAFE') if $opts{'t'};
11 push(@defines, '-DNO_SHA_384_512')  if $opts{'x'};
12
13         # Configure SHA source to use static arrays for
14         # message schedules if compiling on Intel platforms.
15         # This seems to speed things up a bit.  However,
16         # DON'T do this if thread-safe option is in force.
17         
18 if ($Config{archname} =~ /^i[3456]86/) {
19         push(@defines, '-DSHA_STO_CLASS=static') unless $opts{'t'};
20 }
21
22 my $define = join(' ', @defines);
23
24 WriteMakefile(
25         'NAME'          => 'Digest::SHA',
26         'VERSION_FROM'  => 'SHA.pm',
27         'PREREQ_PM'     => {},
28         'AUTHOR'        => 'Mark Shelor <mshelor@cpan.org>',
29         'LIBS'          => [''],
30         MAN3PODS        => {},      # Pods will be built by installman.
31         'DEFINE'        => $define,
32         'INC'           => '-I.',
33         'NO_META'       => 1,
34 );