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:
parent
56eaf631d3
commit
d9afb64f40
1 changed files with 7 additions and 2 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue