exconf.rb checks for libzmq.so installation

This commit is contained in:
Martin Sustrik 2010-02-16 23:02:59 +01:00
parent 8214d386c3
commit 1e7878489d
2 changed files with 7 additions and 2 deletions

View File

@ -18,6 +18,7 @@ Martin Hurton
Martin Lucina
Martin Sustrik
Matus Hamorsky
McClain Looney
Pavel Gushcha
Pavol Malosek
Steven McCoy

View File

@ -18,7 +18,11 @@
require 'mkmf'
dir_config('libzmq')
have_library('libzmq')
create_makefile("ruby")
if have_library('libzmq', 'zmq_init')
puts "Cool, I found your zmq install..."
create_makefile("zmq")
else
raise "Couldn't find zmq library. try setting --with-zmq-dir=<path> to tell me where it is."
end