Apply nan/inf handling patch from Sisyphus
[Math-GSL.git] / Makefile.PL
blob72812d8d3d2f6007df36c632055820732d667834
1 # Note: this file was auto-generated by Module::Build::Compat version 0.2808_01
2 # and then de-mangled by Jonathan Leto <jonathan@leto.net>
3 require 5.8.0;
5 BEGIN {
6     eval { require ExtUtils::PkgConfig };
7     if ($@) {
8         print "\nI see that you are a CPANTester, you really should install ExtUtils::PkgConfig !\n"
9             if $ENV{AUTOMATED_TESTING};
10         print <<EXIT;
11 ExtUtils::PkgConfig is currently needed to find GSL for the compilation of this module.
12 It may be bundled with Math::GSL in the future.
13 EXIT
14         exit 0;
15     }
17     
18 unless (eval "use Module::Build::Compat 0.02; 1" ) {
19       print "This module requires Module::Build to install itself.\n";
20       
21       require ExtUtils::MakeMaker;
22       my $yn = ExtUtils::MakeMaker::prompt('Install Module::Build now from CPAN?', 'y');
23       
24       unless ($yn =~ /^y/i) {
25             die " *** Cannot install without Module::Build.  Exiting ...\n";
26       }
27       
28       require Cwd;
29       require File::Spec;
30       require CPAN;
31       
32       my $cwd = Cwd::cwd(); # Save this 'cause CPAN will chdir all over the place.
33       
34       CPAN::Shell->install('Module::Build::Compat');
35       CPAN::Shell->expand("Module", "Module::Build::Compat")->uptodate
36             or die "Couldn't install Module::Build, giving up.\n";
37       
38       chdir $cwd or die "Cannot chdir() back to $cwd: $!";
41 eval "use Module::Build::Compat 0.02; 1" or die $@;
42 use lib '_build/lib';
43 Module::Build::Compat->run_build_pl(args => \@ARGV);
44 require MyModuleBuilder;
45 Module::Build::Compat->write_makefile(build_class => 'MyModuleBuilder');