summaryrefslogtreecommitdiff
path: root/src/dumm/ext/extconf.rb.in
diff options
context:
space:
mode:
Diffstat (limited to 'src/dumm/ext/extconf.rb.in')
-rw-r--r--src/dumm/ext/extconf.rb.in19
1 files changed, 19 insertions, 0 deletions
diff --git a/src/dumm/ext/extconf.rb.in b/src/dumm/ext/extconf.rb.in
new file mode 100644
index 000000000..36536ec52
--- /dev/null
+++ b/src/dumm/ext/extconf.rb.in
@@ -0,0 +1,19 @@
+#
+# DUMM for Ruby
+#
+
+require 'mkmf'
+
+$defs << " @DEFS@"
+$CFLAGS << " -Wno-format"
+
+dir_config('dumm', '@top_srcdir@/src/dumm', '../.libs')
+dir_config('strongswan', '@top_srcdir@/src/libstrongswan', '../../libstrongswan/.libs')
+
+unless find_library('dumm', 'dumm_create')
+ puts "... failed: 'libdumm' not found!"
+ exit
+end
+
+create_makefile('dumm', '@top_srcdir@/src/dumm/ext')
+