diff --git a/Formula/rtorrent.rb b/Formula/rtorrent.rb index 6a9badb477..f5daca2283 100644 --- a/Formula/rtorrent.rb +++ b/Formula/rtorrent.rb @@ -8,9 +8,12 @@ class Rtorrent :optional def install - system "./configure", "--prefix=#{prefix}", "--disable-debug", "--disable-dependency-tracking" + args = ["--disable-debug", "--disable-dependency-tracking", "--prefix=#{prefix}"] + args << "--with-xmlrpc-c" if Formula.factory("xmlrpc-c").installed? + system "./configure", *args system "make" system "make install" end