Repository: mesos
Updated Branches:
  refs/heads/master 45b8f20fc -> e6be44560


Modified mesos configure.ac to set $with_svn to `brew --prefix subversion` for 
OS X.

Review: https://reviews.apache.org/r/28721


Project: http://git-wip-us.apache.org/repos/asf/mesos/repo
Commit: http://git-wip-us.apache.org/repos/asf/mesos/commit/50b33821
Tree: http://git-wip-us.apache.org/repos/asf/mesos/tree/50b33821
Diff: http://git-wip-us.apache.org/repos/asf/mesos/diff/50b33821

Branch: refs/heads/master
Commit: 50b33821f1154a983dcf9d9bc2aec9acc83a1239
Parents: 45b8f20
Author: Michael Park <[email protected]>
Authored: Tue Dec 9 14:30:49 2014 -0700
Committer: Till Toenshoff <[email protected]>
Committed: Tue Dec 9 14:38:35 2014 -0700

----------------------------------------------------------------------
 configure.ac | 9 ++++++++-
 1 file changed, 8 insertions(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/mesos/blob/50b33821/configure.ac
----------------------------------------------------------------------
diff --git a/configure.ac b/configure.ac
index 1ca6a6b..acc685c 100644
--- a/configure.ac
+++ b/configure.ac
@@ -669,7 +669,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

Reply via email to