0
0
Fork 0
mirror of https://github.com/matrix-construct/construct synced 2024-12-26 07:23:53 +01:00

configure: Use PKG_CHECK_MODULES for without included rocksdb.

This commit is contained in:
Jason Volk 2020-05-08 15:21:25 -07:00
parent 56eaf631d3
commit d9afb64f40

View file

@ -1845,6 +1845,10 @@ RB_HELP_STRING([--with-included-rocksdb[[[=version]]]], [Use the RocksDB sources
AC_MSG_RESULT([no])
with_included_rocksdb="no"
PKG_CHECK_MODULES(ROCKSDB, [rocksdb],
[
ROCKSDB_LIBS="-lrocksdb"
], [
AC_CHECK_LIB(rocksdb, rocksdb_open,
[
ROCKSDB_LIBS="-lrocksdb"
@ -1852,6 +1856,7 @@ RB_HELP_STRING([--with-included-rocksdb[[[=version]]]], [Use the RocksDB sources
AC_MSG_ERROR([Unable to find required RocksDB package. Try apt-get install librocksdb-dev])
])
])
])
dnl
dnl