Skip to content

Commit

Permalink
freetds: add flag for Kerberos support
Browse files Browse the repository at this point in the history
Closes Homebrew/legacy-homebrew#28970.

Signed-off-by: Adam Vandenberg <flangy@gmail.com>
  • Loading branch information
Kris Zaragoza authored and adamv committed May 6, 2014
1 parent 95e5720 commit 15f6c61
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions Formula/freetds.rb
Expand Up @@ -17,6 +17,7 @@ class Freetds < Formula
option "enable-msdblib", "Enable Microsoft behavior in the DB-Library API where it diverges from Sybase's"
option "enable-sybase-compat", "Enable close compatibility with Sybase's ABI, at the expense of other features"
option "enable-odbc-wide", "Enable odbc wide, prevent unicode - MemoryError's"
option "enable-krb", "Enable Kerberos support"

depends_on "pkg-config" => :build
depends_on "unixodbc" => :optional
Expand Down Expand Up @@ -48,6 +49,10 @@ def install
args << "--enable-odbc-wide"
end

if build.include? "enable-krb"
args << "--enable-krb5"
end

ENV.universal_binary if build.universal?
system "./configure", *args
system 'make'
Expand Down

0 comments on commit 15f6c61

Please sign in to comment.