Modified libprocess configure.ac to set $with_svn to `brew --prefix subversion` for OS X.
Review: https://reviews.apache.org/r/28722 Project: http://git-wip-us.apache.org/repos/asf/mesos/repo Commit: http://git-wip-us.apache.org/repos/asf/mesos/commit/e6be4456 Tree: http://git-wip-us.apache.org/repos/asf/mesos/tree/e6be4456 Diff: http://git-wip-us.apache.org/repos/asf/mesos/diff/e6be4456 Branch: refs/heads/master Commit: e6be445607821916717c49e9de786768e8842069 Parents: 50b3382 Author: Michael Park <[email protected]> Authored: Tue Dec 9 14:32:04 2014 -0700 Committer: Till Toenshoff <[email protected]> Committed: Tue Dec 9 14:39:22 2014 -0700 ---------------------------------------------------------------------- 3rdparty/libprocess/configure.ac | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/mesos/blob/e6be4456/3rdparty/libprocess/configure.ac ---------------------------------------------------------------------- diff --git a/3rdparty/libprocess/configure.ac b/3rdparty/libprocess/configure.ac index 314c8b8..024f892 100644 --- a/3rdparty/libprocess/configure.ac +++ b/3rdparty/libprocess/configure.ac @@ -220,7 +220,14 @@ libapr-1 is required for mesos to build. # the CPPFLAGS and LDFLAGS with respective /include and /lib path # suffixes. We include /include/subversion-1 because we include # <svn_*> directly. -if test -n "`echo $with_svn`" ; then +if test -z "`echo $with_svn`" && + test "$OS_NAME" = "darwin" && + test -n "`command -v brew`" && + test -n "`brew list --versions subversion`"; then + with_svn=`brew --prefix subversion` +fi + +if test -n "`echo $with_svn`"; then CPPFLAGS="-I${with_svn}/include/subversion-1 $CPPFLAGS" LDFLAGS="-L${with_svn}/lib $LDFLAGS" else
