summaryrefslogtreecommitdiff
path: root/bindings
diff options
context:
space:
mode:
authorMartin Sustrik <sustrik@250bpm.com>2010-02-16 23:02:59 +0100
committerMartin Sustrik <sustrik@250bpm.com>2010-02-16 23:02:59 +0100
commit1e7878489dc5d3013b5e5858fe404ab6b4a6947a (patch)
tree5298f228c12c8782294b3ebe8f0d6968f7f2e7bc /bindings
parent8214d386c3f10dcc7f034a1159e82aa2d470829f (diff)
exconf.rb checks for libzmq.so installation
Diffstat (limited to 'bindings')
-rw-r--r--bindings/ruby/extconf.rb8
1 files changed, 6 insertions, 2 deletions
diff --git a/bindings/ruby/extconf.rb b/bindings/ruby/extconf.rb
index d5778d0..30c70fb 100644
--- a/bindings/ruby/extconf.rb
+++ b/bindings/ruby/extconf.rb
@@ -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