You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@mesos.apache.org by ti...@apache.org on 2016/06/05 13:28:09 UTC

[3/4] mesos git commit: Added configure check for separate fts library to libprocess.

Added configure check for separate fts library to libprocess.

On some systems (e.g., those that use musl instead of glibc),
the fts(3) family of functions are not provided by libc.
Instead, a separate fts library must be installed. If this is
the case, "libfts" should be added to the list of libraries that
stout is linked against.

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


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

Branch: refs/heads/master
Commit: f45d21b916a421360987ffaf2b44fe1e578e0f2b
Parents: 9915fa2
Author: Neil Conway <ne...@gmail.com>
Authored: Sun Jun 5 15:06:22 2016 +0200
Committer: Till Toenshoff <to...@me.com>
Committed: Sun Jun 5 15:06:22 2016 +0200

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


http://git-wip-us.apache.org/repos/asf/mesos/blob/f45d21b9/3rdparty/libprocess/configure.ac
----------------------------------------------------------------------
diff --git a/3rdparty/libprocess/configure.ac b/3rdparty/libprocess/configure.ac
index c8fcd35..41f4537 100644
--- a/3rdparty/libprocess/configure.ac
+++ b/3rdparty/libprocess/configure.ac
@@ -388,6 +388,22 @@ AS_IF([test "x${ac_cv_env_CFLAGS_set}" = "x"],
 AS_IF([test "x${ac_cv_env_CXXFLAGS_set}" = "x"],
       [CXXFLAGS="$CXXFLAGS $debug_flags $optimize_flags"])
 
+# Check if we need to do anything special to support using the fts_*
+# functions. On some systems (e.g., those that use musl instead of
+# glibc), FTS support requires linking against an additional library.
+AC_CHECK_HEADERS([fts.h], [], [AC_MSG_ERROR([cannot find fts.h
+-------------------------------------------------------------------
+Failed to find fts.h. If this header file is not provided by libc
+on this system (e.g., musl), a separate FTS package must be installed.
+-------------------------------------------------------------------
+])])
+
+AC_SEARCH_LIBS(fts_close, fts, [], [AC_MSG_ERROR([cannot find libfts
+-------------------------------------------------------------------
+Failed to find fts_close. If this function is not provided by libc
+on this system (e.g., musl), a separate FTS package must be installed.
+-------------------------------------------------------------------
+])])
 
 ###############################################################################
 # Miscellaneous checks related to (un)bundled software.