ext/etc/extconf.rb in etc-1.0.0 vs ext/etc/extconf.rb in etc-1.0.1

- old
+ new

@@ -39,8 +39,12 @@ have_struct_member('struct passwd', 'pw_comment', 'pwd.h') unless /cygwin/ === RUBY_PLATFORM have_struct_member('struct passwd', 'pw_expire', 'pwd.h') have_struct_member('struct passwd', 'pw_passwd', 'pwd.h') have_struct_member('struct group', 'gr_passwd', 'grp.h') +srcdir = File.expand_path("..", __FILE__) +if !File.exists?("#{srcdir}/constdefs.h") + %x[#{RbConfig.ruby} #{srcdir}/mkconstants.rb -o #{srcdir}/constdefs.h] +end $distcleanfiles << "constdefs.h" create_makefile("etc")