0
0
Fork 0
mirror of https://github.com/matrix-construct/construct synced 2024-05-18 10:53:48 +02: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,11 +1845,16 @@ RB_HELP_STRING([--with-included-rocksdb[[[=version]]]], [Use the RocksDB sources
AC_MSG_RESULT([no])
with_included_rocksdb="no"
AC_CHECK_LIB(rocksdb, rocksdb_open,
PKG_CHECK_MODULES(ROCKSDB, [rocksdb],
[
ROCKSDB_LIBS="-lrocksdb"
], [
AC_MSG_ERROR([Unable to find required RocksDB package. Try apt-get install librocksdb-dev])
AC_CHECK_LIB(rocksdb, rocksdb_open,
[
ROCKSDB_LIBS="-lrocksdb"
], [
AC_MSG_ERROR([Unable to find required RocksDB package. Try apt-get install librocksdb-dev])
])
])
])