Updated mcollective.init according to OSCI-658
[packages/precise/mcollective.git] / lib / mcollective / vendor / json / ext / json / ext / parser / extconf.rb
diff --git a/lib/mcollective/vendor/json/ext/json/ext/parser/extconf.rb b/lib/mcollective/vendor/json/ext/json/ext/parser/extconf.rb
new file mode 100644 (file)
index 0000000..d2438cd
--- /dev/null
@@ -0,0 +1,16 @@
+require 'mkmf'
+require 'rbconfig'
+
+unless $CFLAGS.gsub!(/ -O[\dsz]?/, ' -O3')
+  $CFLAGS << ' -O3'
+end
+if CONFIG['CC'] =~ /gcc/
+  $CFLAGS << ' -Wall'
+  #unless $CFLAGS.gsub!(/ -O[\dsz]?/, ' -O0 -ggdb')
+  #  $CFLAGS << ' -O0 -ggdb'
+  #end
+end
+
+have_header("re.h")
+have_header("ruby/st.h")
+create_makefile 'json/ext/parser'