mirror of
https://github.com/matrix-construct/construct
synced 2024-11-25 08:12:37 +01:00
configure: Use action-if-enabled so -lrocksdb is not prepended everywhere.
This commit is contained in:
parent
347c600b41
commit
8c0a6f0ba8
1 changed files with 3 additions and 3 deletions
|
@ -1853,12 +1853,12 @@ AC_HELP_STRING([--with-included-rocksdb[[[=shared]]]], [Use the RocksDB sources
|
||||||
AC_MSG_RESULT([no])
|
AC_MSG_RESULT([no])
|
||||||
with_included_rocksdb="no"
|
with_included_rocksdb="no"
|
||||||
|
|
||||||
AC_CHECK_LIB(rocksdb, rocksdb_open, [],
|
AC_CHECK_LIB(rocksdb, rocksdb_open,
|
||||||
[
|
[
|
||||||
|
ROCKSDB_LIBS="-lrocksdb"
|
||||||
|
], [
|
||||||
AC_MSG_ERROR([Unable to find required RocksDB package. Try apt-get install librocksdb-dev])
|
AC_MSG_ERROR([Unable to find required RocksDB package. Try apt-get install librocksdb-dev])
|
||||||
])
|
])
|
||||||
|
|
||||||
ROCKSDB_LIBS="-lrocksdb"
|
|
||||||
])
|
])
|
||||||
|
|
||||||
dnl
|
dnl
|
||||||
|
|
Loading…
Reference in a new issue