# extconf.rb.in -> extconf.rb
# creates a Makefile to make RMagick.so

require 'mkmf'

# Pass along Ruby's version number
VERSION_NUMBER = '0x'+RUBY_VERSION.tr('.','')

$CFLAGS = "@CFLAGS@"
$CPPFLAGS = "-DRUBY_VERSION=#{VERSION_NUMBER} @CPPFLAGS@"

if RUBY_VERSION >= '1.8.0'
    $DLDFLAGS = "@LDFLAGS@"
else
    $LDFLAGS = "@LDFLAGS@"
end

$LOCAL_LIBS = "@LOCAL_LIBS@"

# Force re-compilation if the generated Makefile or
# rmagick_config.h changed.
$config_h = 'Makefile rmagick_config.h'

create_makefile("RMagick")

