i thought mkmf did that automatically... oh well

This commit is contained in:
Evan Weaver 2008-01-21 07:37:04 +00:00
Родитель 4fd9e56a94
Коммит dd2325cd7c
1 изменённых файлов: 9 добавлений и 2 удалений

Просмотреть файл

@ -12,6 +12,13 @@ if ENV['DEBUG']
end
dir_config 'libmemcached'
find_library 'memcached', 'memcached_server_add'
find_header 'libmemcached/memcached.h', *ENV['INCLUDE_PATH'].to_s.split(":")
# XXX There's probably a better way to do this
unless find_library 'memcached', 'memcached_server_add', *ENV['LD_LIBRARY_PATH'].to_s.split(":")
raise "shared library 'libmemcached' not found"
end
unless find_header 'libmemcached/memcached.h', *ENV['INCLUDE_PATH'].to_s.split(":")
raise "header file 'libmemcached/memcached.h' not found"
end
create_makefile 'libmemcached'