]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
configure.ac: check for libsnappy
authorDanny Al-Gaaf <danny.al-gaaf@bisect.de>
Wed, 27 Feb 2013 13:27:48 +0000 (14:27 +0100)
committerDanny Al-Gaaf <danny.al-gaaf@bisect.de>
Wed, 27 Feb 2013 13:27:48 +0000 (14:27 +0100)
Since libsnappy is needed by leveldb, check if the lib is installed
before check for leveldb.

Signed-off-by: Danny Al-Gaaf <danny.al-gaaf@bisect.de>
configure.ac

index c7bb3d0515cc269516d0db11be81b727a7819e50..b4b729f4f649c058721f7506c3d33f7280193e23 100644 (file)
@@ -412,6 +412,8 @@ AC_ARG_WITH([ocf],
             [with_ocf=no])
 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])])
 # use system leveldb
 AC_CHECK_LIB([leveldb], [leveldb_open], [], [AC_MSG_FAILURE([libleveldb not found])], [-lsnappy -lpthread])