Sha256: 9dae26ea526ec66c3dcd0b93a795879db554d5d68aa642318a4df25bd231ec34

Contents?: true

Size: 833 Bytes

Versions: 14

Compression:

Stored size: 833 Bytes

Contents

require 'mkmf'


def fail( str )
  STDERR << " extconf failed: #{str}\n"
  exit 1
end


if enable_config('debug')
    $CFLAGS = '-O0 -g -Wall '
else    
    $CFLAGS = '-O3 -Wall'
end


if enable_config('rlb-debug')
    $CFLAGS += '-DRLB_DEBUG '
end

# link in C++ libraries
$LIBS << " -lstdc++ -lc"

nolua_msg = <<END_OF_MESSAGE
need liblua.

        Install the library or try one of the following options to extconf.rb:

        --with-lua-lib=/path/to/liblua/lib
        --with-lua-include=/path/to/liblua/include
        --with-lualib=name_of_lua_library
        
        --enable-debug will build it optimized and with debugging symbols 
END_OF_MESSAGE


dir_config 'lua'

unless have_header('lua.h')
    fail nolua_msg
end
unless have_library( 'lua', 'lua_pushvalue' )
    fail nolua_msg
end

create_makefile 'rubyluabridge'

Version data entries

14 entries across 14 versions & 1 rubygems

Version Path
Tamar-0.7.18 src/rubyluabridge/extconf.rb
Tamar-0.7.17 src/rubyluabridge/extconf.rb
Tamar-0.7.16 src/rubyluabridge/extconf.rb
Tamar-0.7.14 src/rubyluabridge/extconf.rb
Tamar-0.7.13 src/rubyluabridge/extconf.rb
Tamar-0.7.12 src/rubyluabridge/extconf.rb
Tamar-0.7.11 src/rubyluabridge/extconf.rb
Tamar-0.7.10 src/rubyluabridge/extconf.rb
Tamar-0.7.9 src/rubyluabridge/extconf.rb
Tamar-0.7.8 src/rubyluabridge/extconf.rb
Tamar-0.7.7 src/rubyluabridge/extconf.rb
Tamar-0.7.6 src/rubyluabridge/extconf.rb
Tamar-0.7.5 src/rubyluabridge/extconf.rb
Tamar-0.7.4 src/rubyluabridge/extconf.rb