Enable postgresql support in sphinx when pg_config is present
Signed-off-by: Adam Vandenberg <flangy@gmail.com>master
parent
791d29c5ed
commit
04e5e927d7
|
@ -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
|
||||
|
||||
|
|
Loading…
Reference in New Issue