sysbench: fix build without mysql in all cases

Closes Homebrew/homebrew#31824.

Signed-off-by: Jack Nagel <jacknagel@gmail.com>
master
Eugene San (eugenesan) 2014-08-23 16:38:38 +03:00 committed by Jack Nagel
parent bcee8486c2
commit 192a1843a2
1 changed files with 5 additions and 1 deletions

View File

@ -16,7 +16,11 @@ class Sysbench < Formula
system "./autogen.sh"
args = ["--prefix=#{prefix}"]
args << "--with-mysql" if build.with? "mysql"
if build.with? "mysql"
args << "--with-mysql"
else
args << "--without-mysql"
end
args << "--with-psql" if build.with? "postgresql"
system "./configure", *args