Skip to content

Commit

Permalink
strictly check for supported version
Browse files Browse the repository at this point in the history
  • Loading branch information
lestrrat committed Jul 19, 2011
1 parent 3917463 commit 578317b
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions tools/detect_zmq.pl
Original file line number Diff line number Diff line change
Expand Up @@ -76,6 +76,12 @@ sub probe_pkgconfig {
}

print " + found $pkg $version\n";

my ($major, $minor, $micro) = split /\./, $version;
if ( $major != 2 && $minor != 1 ) {
die "Whoa there! We don't support anything other than libzmq 2.1.x";
}

if (! $ENV{ZMQ_INCLUDES}) {
if (my $cflags = qx/$pkg_config --cflags-only-I $pkg/) {
chomp $cflags;
Expand Down

0 comments on commit 578317b

Please sign in to comment.