Commit 40bfa888 authored by Ondřej Surý's avatar Ondřej Surý

Define HAVE_LMDB only if $enable_lmdb == shared

parent f1096e39
......@@ -355,7 +355,7 @@ AS_IF([test "$have_lmdb" != "no"],[
enable_lmdb=embedded
lmdb_CFLAGS='-I$(srcdir)/contrib/lmdb'
])
AM_CONDITIONAL([HAVE_LMDB], test "$have_lmdb" != "no")
AM_CONDITIONAL([HAVE_LMDB], test "$enable_lmdb" = "shared")
AC_SUBST([lmdb_CFLAGS])
# LMDB mapping sizes
......
......@@ -188,7 +188,9 @@ libknot_la_LIBADD = dnssec/libdnssec.la libcontrib.la $(lmdb_LTLIBS)
# pkg-config
pkgconfig_DATA = libknot.pc
if !HAVE_LMDB
if HAVE_LMDB
lmdb_LTLIBS =
else !HAVE_LMDB
noinst_LTLIBRARIES += liblmdb.la
liblmdb_la_SOURCES = \
contrib/lmdb/lmdb.h \
......@@ -196,7 +198,7 @@ liblmdb_la_SOURCES = \
contrib/lmdb/midl.c \
contrib/lmdb/midl.h
lmdb_LTLIBS = liblmdb.la
endif
endif !HAVE_LMDB
# static: utilities shared
libknotus_la_SOURCES = \
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment