You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@mesos.apache.org by mp...@apache.org on 2016/12/08 11:14:42 UTC

[2/3] mesos git commit: Made `configure.ac` default to use brew apr on OS X in libprocess.

Made `configure.ac` default to use brew apr on OS X in libprocess.

This patch brings the treatment of apr on par with the handling of svn
in terms of searching for an available brew installation.

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


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

Branch: refs/heads/master
Commit: 492b3c6b644b94db2e9e007fd518a833c52da328
Parents: 6b60382
Author: Michael Park <mp...@apache.org>
Authored: Thu Dec 8 02:03:42 2016 -0800
Committer: Michael Park <mp...@apache.org>
Committed: Thu Dec 8 02:08:44 2016 -0800

----------------------------------------------------------------------
 3rdparty/libprocess/configure.ac | 9 +++++++++
 1 file changed, 9 insertions(+)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/mesos/blob/492b3c6b/3rdparty/libprocess/configure.ac
----------------------------------------------------------------------
diff --git a/3rdparty/libprocess/configure.ac b/3rdparty/libprocess/configure.ac
index e65e5ca..92b2091 100644
--- a/3rdparty/libprocess/configure.ac
+++ b/3rdparty/libprocess/configure.ac
@@ -424,6 +424,15 @@ on this system (e.g., musl), a separate FTS package must be installed.
 # Miscellaneous checks related to (un)bundled software.
 ###############################################################################
 
+# On OS X, if `--with-apr` was not provided, we try to use an available
+# brew installed version.
+if test -z "`echo $with_apr`" &&
+   test "$OS_NAME" = "darwin" &&
+   test -n "`command -v brew`" &&
+   test -n "`brew list --versions apr`"; then
+  with_apr=`brew --prefix apr`/libexec
+fi
+
 # Check if libapr-1 prefix path was provided, and if so, add it to
 # the CPPFLAGS and LDFLAGS with respective /include/apr-1 and /lib path
 # suffixes. We include /include/apr-1 because we include <apr*>