~ubuntu-branches/ubuntu/oneiric/mcollective/oneiric-proposed

« back to all changes in this revision

Viewing changes to lib/mcollective/vendor/json/ext/json/ext/generator/extconf.rb

  • Committer: Bazaar Package Importer
  • Author(s): Marc Cluet, Marc Cluet, Chuck Short
  • Date: 2011-05-05 07:37:54 UTC
  • mfrom: (1.1.2 upstream)
  • Revision ID: james.westby@ubuntu.com-20110505073754-klk1jkz8afi4fomx
Tags: 1.2.0-0ubuntu1
[Marc Cluet]
* Update to 1.2.0
* Build for Oneiric.

[Chuck Short]
* Drop ruby from mcollective, mcollective-middleware, mcollective-client
  since its a dependency of mcollective-common.
* Bump standards to 3.9.2.
* Fix up lintian warnings.

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
require 'mkmf'
 
2
require 'rbconfig'
 
3
 
 
4
unless $CFLAGS.gsub!(/ -O[\dsz]?/, ' -O3')
 
5
  $CFLAGS << ' -O3'
 
6
end
 
7
if CONFIG['CC'] =~ /gcc/
 
8
  $CFLAGS << ' -Wall'
 
9
  #unless $CFLAGS.gsub!(/ -O[\dsz]?/, ' -O0 -ggdb')
 
10
  #  $CFLAGS << ' -O0 -ggdb'
 
11
  #end
 
12
end
 
13
 
 
14
if RUBY_VERSION < "1.9"
 
15
  have_header("re.h")
 
16
else
 
17
  have_header("ruby/re.h")
 
18
  have_header("ruby/encoding.h")
 
19
end
 
20
create_makefile 'json/ext/generator'