Skip to content

Commit

Permalink
t/Lib/GIS/Proj/Makefile.PL - enable build without Alien
Browse files Browse the repository at this point in the history
  • Loading branch information
sisyphus committed Mar 23, 2015
1 parent de278d6 commit 83ec8c4
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions Lib/GIS/Proj/Makefile.PL
Expand Up @@ -43,6 +43,11 @@ EOF
my $lib_path = Alien::Proj4->libdir;
my $incflags = Alien::Proj4->incflags;

if(!Alien::Proj4->installed) {
$lib_path = "@{$PDL::Config{$config_libs}}";
$incflags = "-I" . "@{$PDL::Config{$config_incs}}" . " -Iinclude";
}

print "Building $package_name. Turn off $config_flag if there are any problems\n";
$PDL::Config{$config_flag}=1;

Expand Down

0 comments on commit 83ec8c4

Please sign in to comment.