build: Searching for LMDB during the configuration phase

This commit is contained in:
Felipe Zimmerle
2016-07-05 11:53:02 -03:00
parent afd7a21d11
commit 5daf4873b5
6 changed files with 191 additions and 2 deletions

View File

@@ -94,6 +94,10 @@ PROG_GEOIP
AM_CONDITIONAL([GEOIP_CFLAGS], [test "GEOIP_CFLAGS" != ""])
# Check for LMDB
PROG_LMDB
AM_CONDITIONAL([LMDB_CFLAGS], [test "LMDB_CFLAGS" != ""])
#
# Check for curl
#
@@ -373,6 +377,24 @@ if test "x$YAJL_FOUND" = "x2"; then
fi
## LMDB
if test "x$LMDB_FOUND" = "x0"; then
echo " + LMDB ....not found"
fi
if test "x$LMDB_FOUND" = "x1"; then
echo -n " + LMDB ....found "
if ! test "x$LMDB_VERSION" = "x"; then
echo "v${LMDB_VERSION}"
else
echo ""
fi
echo " ${LMDB_DISPLAY}"
fi
if test "x$LMDB_FOUND" = "x2"; then
echo " + LMDB ....disabled"
fi
## libxml2
if test "x$LIBXML2_FOUND" = "x0"; then
echo " + LibXML2 ....not found"