summaryrefslogtreecommitdiffstats
path: root/extconf.rb
diff options
context:
space:
mode:
Diffstat (limited to 'extconf.rb')
-rw-r--r--extconf.rb8
1 files changed, 8 insertions, 0 deletions
diff --git a/extconf.rb b/extconf.rb
index d7a7693..fc178b5 100644
--- a/extconf.rb
+++ b/extconf.rb
@@ -21,6 +21,14 @@ dir_config("mmap")
end
end
+if enable_config("ipc")
+ unless have_func("semctl") && have_func("shmctl")
+ $stderr.puts "\tIPC will not be available"
+ end
+end
+
+$CFLAGS += " -DRUBYLIBDIR='\"#{CONFIG['rubylibdir']}\"'"
+
create_makefile "mmap"
begin