summaryrefslogtreecommitdiff
path: root/ext/strscan/extconf.rb
blob: d2e9343cbced7f34c0e1380b4571a6c520b6ec0d (plain)
1
2
3
4
5
6
7
8
9
10
11
# frozen_string_literal: true
require 'mkmf'
if RUBY_ENGINE == 'ruby'
  $INCFLAGS << " -I$(top_srcdir)" if $extmk
  have_func("onig_region_memsize(NULL)")
  have_func("rb_reg_onig_match", "ruby/re.h")
  have_func("rb_deprecate_constant")
  create_makefile 'strscan'
else
  File.write('Makefile', dummy_makefile("").join)
end