aboutsummaryrefslogtreecommitdiffstats
path: root/ext/strscan/extconf.rb
diff options
context:
space:
mode:
Diffstat (limited to 'ext/strscan/extconf.rb')
-rw-r--r--ext/strscan/extconf.rb3
1 files changed, 2 insertions, 1 deletions
diff --git a/ext/strscan/extconf.rb b/ext/strscan/extconf.rb
index 714fa99fae..f0ecbf85d8 100644
--- a/ext/strscan/extconf.rb
+++ b/ext/strscan/extconf.rb
@@ -1,4 +1,5 @@
# frozen_string_literal: true
require 'mkmf'
-$INCFLAGS << " -I$(top_srcdir)"
+$INCFLAGS << " -I$(top_srcdir)" if $extmk
+have_func("onig_region_memsize", "ruby.h")
create_makefile 'strscan'