]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
check rocksdb library when '--with-librocksdb' option is enabled 2784/head
authorxinxin shu <xinxin.shu@intel.com>
Thu, 23 Oct 2014 05:20:58 +0000 (13:20 +0800)
committerxinxin shu <xinxin.shu@intel.com>
Thu, 23 Oct 2014 05:20:58 +0000 (13:20 +0800)
Signed-off-by: xinxin shu <xinxin.shu@intel.com>
configure.ac

index 62dc295b9c14779fdcffff20fdfd3aa52808c3f8..7a0691d2390f7ee928489a482024659c06cc2dfc 100644 (file)
@@ -565,7 +565,7 @@ AC_ARG_WITH([librocksdb],
 AS_IF([test "x$with_librocksdb" = "xyes"],
             [PKG_CHECK_MODULES([LIBROCKSDB], [rocksdb], [], [true])])
 AS_IF([test "x$with_librocksdb" = "xyes"],
-            [AC_DEFINE([HAVE_LIBROCKSDB], [1], [Defined if you have librocksdb enabled])])
+            [AC_CHECK_LIB([rocksdb], [open], [], [AC_MSG_FAILURE([librocksdb not found])])])
 AM_CONDITIONAL(WITH_DLIBROCKSDB, [ test "$with_librocksdb" = "yes" ])
 
 AC_ARG_WITH([librocksdb-static],