Sha256: c3f686d04bab1267f20e6b689a6094d17028f2ef049683e271b22cadd6d24169

Contents?: true

Size: 691 Bytes

Versions: 4

Compression:

Stored size: 691 Bytes

Contents

# encoding: UTF-8
require 'mkmf'
require 'rbconfig'

$CFLAGS << ' -DHAVE_RBTRAP' if have_var('rb_trap_immediate', ['ruby.h', 'rubysig.h'])
# add_define 'HAVE_RBTRAP' if have_var('rb_trap_immediate', ['ruby.h', 'rubysig.h'])

# Borrowed from taf2-curb
dir_config('curl')
if find_executable('curl-config')
  $CFLAGS << " #{`curl-config --cflags`.strip}"
  $LIBS << " #{`curl-config --libs`.strip}"
elsif !have_library('curl') or !have_header('curl/curl.h')
  fail <<-EOM
  Can't find libcurl or curl/curl.h

  Try passing --with-curl-dir or --with-curl-lib and --with-curl-include
  options to extconf.
  EOM
end

$CFLAGS << ' -Wall'
# $CFLAGS << ' -O0 -ggdb'

create_makefile("streamly_ext")

Version data entries

4 entries across 4 versions & 2 rubygems

Version Path
brianmario-streamly-0.1.1 ext/extconf.rb
brianmario-streamly-0.1.2 ext/extconf.rb
brianmario-streamly-0.1.3 ext/extconf.rb
streamly-0.1.3 ext/extconf.rb