You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@mesos.apache.org by be...@apache.org on 2013/05/26 18:57:41 UTC

[16/28] git commit: Cleanups in configure.ac.

Cleanups in configure.ac.

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


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

Branch: refs/heads/master
Commit: 1e35e9e3862c1586c4e2b3603b60faec1014fec4
Parents: 5e87116
Author: Benjamin Hindman <be...@twitter.com>
Authored: Sun May 19 20:29:11 2013 -0700
Committer: Benjamin Hindman <be...@twitter.com>
Committed: Sun May 26 00:13:41 2013 -0700

----------------------------------------------------------------------
 third_party/libprocess/configure.ac |   23 +++++++++++------------
 1 files changed, 11 insertions(+), 12 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/incubator-mesos/blob/1e35e9e3/third_party/libprocess/configure.ac
----------------------------------------------------------------------
diff --git a/third_party/libprocess/configure.ac b/third_party/libprocess/configure.ac
index 329fa47..efa7783 100644
--- a/third_party/libprocess/configure.ac
+++ b/third_party/libprocess/configure.ac
@@ -69,6 +69,15 @@ AC_ARG_WITH([zlib],
                             will be far less responsive; not recommended]),
             [], [with_zlib=yes])
 
+# Do some OS specific setup.
+case "${target_os}" in
+  linux*)
+    LIBS="$LIBS -lrt" # For clock_gettime() in stout/stopwatch.hpp.
+    OS_NAME=linux # Used below for OS_LINUX.
+    ;;
+  *)
+    ;;
+esac
 
 # Checks for gcc toolchain (we rely on some atomic builtins for now).
 AC_PROG_CXX([g++])
@@ -101,18 +110,8 @@ fi
 
 AM_CONDITIONAL([HAS_GPERFTOOLS], [test "x$gperftools" = "xyes"])
 
-# Added for clock_gettime() call in stout/stopwatch.hpp.
-# We also only want to use stout/proc.hpp on linux.
-case "${target_os}" in
-  linux*)
-    LIBS="$LIBS -lrt"
-    OS_NAME=linux
-    ;;
-  *)
-    ;;
-esac
-
-# Used for conditionally including source files.
+# Used for conditionally building source files (e.g., only want to
+# build stout/tests/proc_tests.cpp on Linux).
 AM_CONDITIONAL([OS_LINUX], [test "x$OS_NAME" = "xlinux"])
 
 AC_OUTPUT