summaryrefslogtreecommitdiff
path: root/ext/bigdecimal
diff options
context:
space:
mode:
Diffstat (limited to 'ext/bigdecimal')
-rw-r--r--ext/bigdecimal/extconf.rb4
1 files changed, 3 insertions, 1 deletions
diff --git a/ext/bigdecimal/extconf.rb b/ext/bigdecimal/extconf.rb
index ab856b8..4ad5172 100644
--- a/ext/bigdecimal/extconf.rb
+++ b/ext/bigdecimal/extconf.rb
@@ -46,7 +46,9 @@ have_builtin_func("__builtin_clz", "__builtin_clz(0)")
have_builtin_func("__builtin_clzl", "__builtin_clzl(0)")
have_header("stdbool.h")
-have_header("x86intrin.h")
+if have_func("_lzcnt_u64", "x86intrin.h") # check availability
+ $defs << "-DHAVE_X86INTRIN_H"
+end
have_func("labs", "stdlib.h")
have_func("llabs", "stdlib.h")