Enable postgresql support in sphinx when pg_config is present

Signed-off-by: Adam Vandenberg <flangy@gmail.com>
master
Steve Purcell 2010-03-18 14:56:08 +00:00 committed by Adam Vandenberg
parent 791d29c5ed
commit 04e5e927d7
1 changed files with 5 additions and 1 deletions

View File

@ -10,7 +10,11 @@ class Sphinx <Formula
# ld: rel32 out of range in _GetPrivateProfileString from /usr/lib/libodbc.a(SQLGetPrivateProfileString.o)
ENV.gcc_4_2
system "./configure", "--prefix=#{prefix}", "--disable-debug", "--disable-dependency-tracking"
config_args = ["--prefix=#{prefix}", "--disable-debug", "--disable-dependency-tracking"]
# configure script won't auto-select PostgreSQL
config_args << ["--with-pgsql"] if `/usr/bin/which pg_config`.size > 0
system "./configure", *config_args
system "make install"
end