mysql2/extconf.rb

19 lines
391 B
Ruby
Raw Normal View History

2010-03-26 08:03:08 +00:00
# encoding: UTF-8
require 'mkmf'
dir_config('mysql')
have_header('mysql/mysql.h')
$CFLAGS << ' -Wall -Wextra -funroll-loops'
# $CFLAGS << ' -O0 -ggdb'
if have_library('mysqlclient')
if RUBY_VERSION =~ /1.9/
$CFLAGS << ' -DRUBY_19_COMPATIBILITY'
end
create_makefile('mysql_ext')
else
puts 'libmysql not found, maybe try manually specifying --with-mysql-dir to find it?'
end