From: Patrick Gundlach Date: 2006-02-09T04:58:26+09:00 Subject: distributing native and ruby version of a library Hi, I have a simple library, one in a pure ruby version and one in a ruby/c version (which is quicker). I would like to distribute both and let the user decide (by checking whether a c library is available) which version to install. What would a clever way to accomplish that? Should I make the decision when running extconf.rb? Any hints? Patrick (the directory structure so far) rb/mylib.rb c/mylib.rb /mylib_base.c /extconf.rb both should be used by require 'mylib' or alike.