Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Newer
Older
100644 61 lines (46 sloc) 2.034 kb
aa3b8dd1 »
2009-05-27 Initial commit of Math::GMPz 0.26
1 use ExtUtils::MakeMaker;
2 use Config;
3 require 5.006;
4
5 $| = 1;
6
7 print "This module requires gmp-4.2.0 (or later)\n";
8
9 $use_64_bit_int = 0; # Let perl decide whether to include 64-bit 'long long' support
10 $use_long_double = 0;# Let perl decide whether to include 'long double' support
11
12 #$use_64_bit_int = -1; # Force exclusion of 64-bit 'long long' support
13 #$use_long_double = -1;# Force exclusion of 'long double' support
14
15 #$use_64_bit_int = 1; # Force inclusion of 64-bit 'long long' support
16 #$use_long_double = 1;# Force inclusion of 'long double' support
17
18 my $defines = $] < 5.008 ? "-DOLDPERL" : "-DNEWPERL";
19
20 if($use_64_bit_int == -1) {}
21 elsif($use_64_bit_int == 1) {$defines .= " -DUSE_64_BIT_INT"}
22 else {
cb22b3a9 » Bob Kuo
2009-06-02 applied patches to pass all tests on Mac OS X (correctly detect 64 bi…
23 unless($Config::Config{ivsize} < 8) {
bfcb85c5 »
2009-06-30 Upgrade to 0.28
24 $defines .= " -DUSE_64_BIT_INT";
cb22b3a9 » Bob Kuo
2009-06-02 applied patches to pass all tests on Mac OS X (correctly detect 64 bi…
25 }
aa3b8dd1 »
2009-05-27 Initial commit of Math::GMPz 0.26
26 }
27
28 if($use_long_double == -1) {}
29 elsif($use_long_double == 1) {$defines .= " -DUSE_LONG_DOUBLE"}
30 else {
cb22b3a9 » Bob Kuo
2009-06-02 applied patches to pass all tests on Mac OS X (correctly detect 64 bi…
31 if($Config::Config{nvsize} > 8 ) {
bfcb85c5 »
2009-06-30 Upgrade to 0.28
32 $defines .= " -DUSE_LONG_DOUBLE";
cb22b3a9 » Bob Kuo
2009-06-02 applied patches to pass all tests on Mac OS X (correctly detect 64 bi…
33 }
aa3b8dd1 »
2009-05-27 Initial commit of Math::GMPz 0.26
34 }
35
36 $defines =~ /-DUSE_64_BIT_INT/ ? print "Building with 64-bit'long long' support\n" :
37 print "Building without 64-bit 'long long' support\n";
38
39 print "If this is wrong, see the \"64-bit support\" section in the README\n\n";
40
41 $defines =~ /-DUSE_LONG_DOUBLE/ ? print "Building with 'long double' support\n" :
42 print "Building without 'long double' support\n";
43
44 print "If this is wrong, see the \"64-bit support\" section in the README\n\n";
45
46 my %options = (
47 NAME => 'Math::GMPz',
bfcb85c5 »
2009-06-30 Upgrade to 0.28
48 AUTHOR => 'Sisyphus (sisyphus at (@) cpan dot (.) org)',
49 ABSTRACT => 'Perl interface to the GMP integer functions',
aa3b8dd1 »
2009-05-27 Initial commit of Math::GMPz 0.26
50 DEFINE => $defines,
51 LIBS => [
52 '-lgmp'
53 ],
54 VERSION_FROM => 'GMPz.pm',
55 clean => { FILES => 'out1.txt out2.txt out3.txt out4.txt out5.txt out6.txt out7.txt' },
56 );
57 WriteMakefile(%options);
58
59 # Remove the Makefile dependency. Causes problems on a few systems.
60 sub MY::makefile { '' }
61
Something went wrong with that request. Please try again.