Sha256: 1f2170062c89d4a6994c5c3dfbf38a0c8618c4a280a91f53cd8fc852ab2ab966

Contents?: true

Size: 1.04 KB

Versions: 7

Compression:

Stored size: 1.04 KB

Contents

ENV['RC_ARCHS'] = '' if RUBY_PLATFORM =~ /darwin/

require 'mkmf'

# :stopdoc:

RbConfig::MAKEFILE_CONFIG['CC'] = ENV['CC'] if ENV['CC']

sqlite = dir_config('sqlite3', ['/usr/local', '/opt/local', '/usr'])

if RUBY_PLATFORM =~ /mswin/
  $CFLAGS << ' -W3'
else
  $CFLAGS << ' -O3 -Wall -Wcast-qual -Wwrite-strings -Wconversion' <<
             ' -Wmissing-noreturn -Winline'
end

def asplode missing
  if RUBY_PLATFORM =~ /mswin/
    abort "#{missing} is missing. Install SQLite3 from " +
          "http://www.sqlite.org/ first."
  else
    abort "#{missing} is missing. Try 'port install sqlite3 +universal' " +
          "or 'yum install sqlite3-devel'"
  end
end

asplode('sqlite3.h')  unless find_header  'sqlite3.h'
asplode('sqlite3') unless find_library 'sqlite3', 'sqlite3_libversion_number'

# Functions defined in 1.9 but not 1.8
have_func('rb_proc_arity')

# These functions may not be defined
have_func('sqlite3_column_database_name')
have_func('sqlite3_enable_load_extension')
have_func('sqlite3_load_extension')

create_makefile('sqlite3/sqlite3_native')

Version data entries

7 entries across 7 versions & 2 rubygems

Version Path
shoes-3.0.1 req/sqlite3/ext/sqlite3/extconf.rb
sqlite3-ruby-1.3.0-x86-mswin32-60 ext/sqlite3/extconf.rb
sqlite3-ruby-1.3.0-x86-mingw32 ext/sqlite3/extconf.rb
sqlite3-ruby-1.3.0 ext/sqlite3/extconf.rb
sqlite3-ruby-1.3.0.beta.2-x86-mswin32-60 ext/sqlite3/extconf.rb
sqlite3-ruby-1.3.0.beta.2-x86-mingw32 ext/sqlite3/extconf.rb
sqlite3-ruby-1.3.0.beta.2 ext/sqlite3/extconf.rb