require 'mkmf' if !have_header("sys/epoll.h") puts "*** complie error: gem 'epoll' must be installed . ***" puts "*** you can require 'io/epoll'. But, you can not use IO::Epoll APIs. ***" end have_func("epoll_create1", "sys/epoll.h") create_makefile('epoll/core')