# File extconf.rb, line 12 def pg_config(type) IO.popen("pg_config --#{type}dir").readline.chomp rescue nil end