summaryrefslogtreecommitdiff
path: root/ext/ffi_yajl/ext
diff options
context:
space:
mode:
Diffstat (limited to 'ext/ffi_yajl/ext')
-rw-r--r--ext/ffi_yajl/ext/encoder/extconf.rb2
-rw-r--r--ext/ffi_yajl/ext/parser/extconf.rb2
2 files changed, 2 insertions, 2 deletions
diff --git a/ext/ffi_yajl/ext/encoder/extconf.rb b/ext/ffi_yajl/ext/encoder/extconf.rb
index 0281ea4..e46080a 100644
--- a/ext/ffi_yajl/ext/encoder/extconf.rb
+++ b/ext/ffi_yajl/ext/encoder/extconf.rb
@@ -55,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
diff --git a/ext/ffi_yajl/ext/parser/extconf.rb b/ext/ffi_yajl/ext/parser/extconf.rb
index 26bdca0..6f8526e 100644
--- a/ext/ffi_yajl/ext/parser/extconf.rb
+++ b/ext/ffi_yajl/ext/parser/extconf.rb
@@ -55,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