mirror of
https://github.com/matrix-construct/construct
synced 2024-12-25 15:04:10 +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,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])
|
||||
])
|
||||
])
|
||||
])
|
||||
|
||||
|
|
Loading…
Reference in a new issue