Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Try alternate names for the swig binary

  • Loading branch information...
commit 1efc4dd8305e1c076c37b8150b69be3b1948f8dc 1 parent 161b892
Duke Leto authored
Showing with 8 additions and 0 deletions.
  1. +8 −0 Build.PL
8 Build.PL
View
@@ -264,9 +264,17 @@ print "Have a great day!\n";
sub swig_version {
+ # recent versions of Ubuntu call it swig2.0 . Le sigh.
+
my $cmd = "swig -version";
my $out = `$cmd`;
if ($?) {
+ warn "Didn't find 'swig' binary, trying another name";
+ }
+ $cmd = "swig2.0 -version";
+ $out = `$cmd`;
+
+ if ($?) {
die "Can't run [$cmd] : $out";
}
if ($out =~ /swig\s+version\s+([\d\.]+)\n/i) {
Please sign in to comment.
Something went wrong with that request. Please try again.