From e259f9507e0f2130cc0180408430ee47a2c18980 Mon Sep 17 00:00:00 2001 From: Aman Gupta Date: Sun, 25 Jan 2009 12:58:46 -0800 Subject: [PATCH] improve extconf glob to find osx stock installs (/usr/local/mysql-5.0.51b-osx10.5-x86/bin/mysql_config) --- ext/extconf.rb | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/ext/extconf.rb b/ext/extconf.rb index 258ded8..e5908de 100644 --- a/ext/extconf.rb +++ b/ext/extconf.rb @@ -8,8 +8,9 @@ dirs = ENV['PATH'].split(':') + %w[ /usr /usr/local /usr/local/mysql + /usr/local/mysql-* /usr/local/lib/mysql5 -] +].map{|dir| "#{dir}/bin" } GLOB = "{#{dirs.join(',')}}/{mysql_config,mysql_config5}"