Skip to content

Commit

Permalink
Try to examine pkg-config execution result more carefully
Browse files Browse the repository at this point in the history
  • Loading branch information
Ivan Baidakou committed Jun 29, 2014
1 parent 51189c8 commit ec9f251
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions Build.PL
Original file line number Diff line number Diff line change
Expand Up @@ -10,10 +10,9 @@ use File::Spec::Functions;
my $perlbin = $Config{perlpath};
my $patch_location = catfile("..", "..", "inc", "makefile-so-linking.patch");

system(qw/pkg-config --exists glu gl sdl/) == 0
or die("can't pkg-config failed: $?");
system(qw/pkg-config --exists glu gl sdl/);
if($? == -1){
die("can't pkg-config failed: $!")
die("pkg-config failed: $!")
}elsif ($? & 127) {
die("pkg-config died with signal: " . ($? & 127));
}elsif ($? >> 8 != 0){
Expand Down

0 comments on commit ec9f251

Please sign in to comment.