From: Dan Mick Date: Fri, 18 Jul 2014 04:44:06 +0000 (-0700) Subject: configure: do not link leveldb with everything X-Git-Tag: v0.84~88^2 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=06a8f7b99c5533f397b34f448138220384df60ac;p=ceph.git configure: do not link leveldb with everything Detect leveldb, but do not let autoconf blindly link it with everything on the planet. Signed-off-by: Dan Mick Sighed-off-by: Sage Weil --- diff --git a/configure.ac b/configure.ac index 0da47323e368b..5f87cbefc8536 100644 --- a/configure.ac +++ b/configure.ac @@ -506,9 +506,9 @@ AC_ARG_WITH([ocf], AM_CONDITIONAL(WITH_OCF, [ test "$with_ocf" = "yes" ]) # check is snappy-devel is installed, needed by leveldb -AC_CHECK_LIB([snappy], [snappy_compress], [], [AC_MSG_FAILURE([libsnappy not found])]) +AC_CHECK_LIB([snappy], [snappy_compress], [true], [AC_MSG_FAILURE([libsnappy not found])]) # use system leveldb -AC_CHECK_LIB([leveldb], [leveldb_open], [], [AC_MSG_FAILURE([libleveldb not found])], [-lsnappy -lpthread]) +AC_CHECK_LIB([leveldb], [leveldb_open], [true], [AC_MSG_FAILURE([libleveldb not found])], [-lsnappy -lpthread]) # see if we can use bloom filters with leveldb AC_LANG_PUSH([C++]) AC_CHECK_HEADER([leveldb/filter_policy.h], [AC_DEFINE([HAVE_LEVELDB_FILTER_POLICY], [1], [Defined if LevelDB supports bloom filters ])])