diff options
author | Wayne Meissner <wmeissner@gmail.com> | 2009-11-15 10:58:31 +1000 |
---|---|---|
committer | Wayne Meissner <wmeissner@gmail.com> | 2009-11-20 06:39:17 +1000 |
commit | 42b440b8feb2ae9728f5957eb43c2060b0cc39ef (patch) | |
tree | 202675c76b40624e746c899c7315e11a1f39fd6d | |
parent | ccd8080cc312d5b96c61f4ee975146a3b31df6ba (diff) | |
download | ffi-42b440b8feb2ae9728f5957eb43c2060b0cc39ef.tar.gz |
If pkg_config() fails, try to find the ffi header in /usr/local/include or /opt/local/include
-rw-r--r-- | ext/ffi_c/extconf.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/ext/ffi_c/extconf.rb b/ext/ffi_c/extconf.rb index d43c5b5..08ef0b4 100644 --- a/ext/ffi_c/extconf.rb +++ b/ext/ffi_c/extconf.rb @@ -4,7 +4,7 @@ require 'rbconfig' dir_config("ffi_c") unless Config::CONFIG['host_os'] =~ /mswin32|mingw32/ - pkg_config("libffi") + pkg_config("libffi") || find_header("ffi.h", "/usr/local/include", "/opt/local/include") have_ffi_call = have_library("ffi", "ffi_call", [ "ffi.h" ]) have_prep_closure = have_func("ffi_prep_closure") libffi_ok = have_ffi_call && have_prep_closure |