SEARCH_PATHS = begin
x =[]ofString
x <<"/usr/local/lib"
x <<"/opt/local/lib"
x <<"/usr/lib"{%if flag?(:x86_64) %}
x <<"/usr/local/lib64"
x <<"/opt/local/lib64"
x <<"/usr/lib64"
x <<"/usr/lib/x86_64-linux-gnu/"{%else%}{%if flag?(:i686) %}
x <<"/usr/lib/i386-linux-gnu"{%end%}{%end%}{%if flag?(:windows) %}
(ENV["PATH"]? ||"").split(";").each do|path|
x << path unless path.blank?
end{%else%}
(ENV["LIBRARY_PATH"]? ||"").split(":").each do|path|
x << path unless path.blank?
end
(ENV["LD_LIBRARY_PATH"]? ||"").split(":").each do|path|
x << path unless path.blank?
end{%end%}
x
end