]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
configure: do not link leveldb with everything 2104/head
authorDan Mick <dan.mick@inktank.com>
Fri, 18 Jul 2014 04:44:06 +0000 (21:44 -0700)
committerSage Weil <sage@inktank.com>
Fri, 18 Jul 2014 04:44:06 +0000 (21:44 -0700)
Detect leveldb, but do not let autoconf blindly link it with everything on the
planet.

Signed-off-by: Dan Mick <dan.mick@inktank.com>
Sighed-off-by: Sage Weil <sage@redhat.com>
configure.ac

index 0da47323e368b836faf7a51ef0c3724212ed6635..5f87cbefc8536ac663739d296f2c32545142d114 100644 (file)
@@ -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 ])])