summaryrefslogtreecommitdiff
path: root/ext/ffi_yajl/ext/encoder/extconf.rb
diff options
context:
space:
mode:
Diffstat (limited to 'ext/ffi_yajl/ext/encoder/extconf.rb')
-rw-r--r--ext/ffi_yajl/ext/encoder/extconf.rb3
1 files changed, 2 insertions, 1 deletions
diff --git a/ext/ffi_yajl/ext/encoder/extconf.rb b/ext/ffi_yajl/ext/encoder/extconf.rb
index f7f0116..e46080a 100644
--- a/ext/ffi_yajl/ext/encoder/extconf.rb
+++ b/ext/ffi_yajl/ext/encoder/extconf.rb
@@ -1,3 +1,4 @@
+# rubocop:disable Style/GlobalVars
require 'mkmf'
require 'rubygems'
require 'libyajl2'
@@ -54,7 +55,7 @@ if !windows? && !find_header('yajl/yajl_tree.h')
dir_config('yajl', HEADER_DIRS, LIB_DIRS)
# here we use find_library in order to deliberately link with -lyajl as a useful side-effect
- if !(find_header('yajl/yajl_tree.h') && find_library('yajl', 'yajl_complete_parse'))
+ unless find_header('yajl/yajl_tree.h') && find_library('yajl', 'yajl_complete_parse')
abort "libyajl2 is missing. please install libyajl2"
end
end