The Perl Toolchain Summit needs more sponsors. If your company depends on Perl, please support this very important event.
use strict;
use warnings;
use ExtUtils::MakeMaker;

WriteMakefile(
	'NAME' => 'PDL::Fit',
	VERSION_FROM => '../../Basic/Core/Version.pm',
	DIR =>  [ qw/Gaussian/ ],
	PM => { map {($_ => '$(INST_LIBDIR)/Fit/'.$_)}
        grep {
            !defined $PDL::Config{WITH_SLATEC} ||
            $PDL::Config{WITH_SLATEC}==1 ||
            !($_ eq 'Linfit.pm' || $_ eq 'LM.pm')
        } <*.pm> },
        (eval ($ExtUtils::MakeMaker::VERSION) >= 6.57_02 ? ('NO_MYMETA' => 1) : ()),
);