File tree Expand file tree Collapse file tree 1 file changed +15
-10
lines changed Expand file tree Collapse file tree 1 file changed +15
-10
lines changed Original file line number Diff line number Diff line change @@ -98,16 +98,21 @@ if test -z "${LMDB_LDADD}"; then
98
98
LMDB_FOUND=-1
99
99
fi
100
100
else
101
- LMDB_FOUND=1
102
- AC_MSG_NOTICE ( [ using LMDB v${LMDB_VERSION}] )
103
- LMDB_CFLAGS="-DWITH_LMDB ${LMDB_CFLAGS}"
104
- LMDB_DISPLAY="${LMDB_LDADD}, ${LMDB_CFLAGS}"
105
- AC_SUBST ( LMDB_VERSION )
106
- AC_SUBST ( LMDB_LDADD )
107
- AC_SUBST ( LMDB_LIBS )
108
- AC_SUBST ( LMDB_LDFLAGS )
109
- AC_SUBST ( LMDB_CFLAGS )
110
- AC_SUBST ( LMDB_DISPLAY )
101
+ if test -z "${LMDB_MANDATORY}"; then
102
+ LMDB_FOUND=2
103
+ AC_MSG_NOTICE ( [ LMDB is disabled by default.] )
104
+ else
105
+ LMDB_FOUND=1
106
+ AC_MSG_NOTICE ( [ using LMDB v${LMDB_VERSION}] )
107
+ LMDB_CFLAGS="-DWITH_LMDB ${LMDB_CFLAGS}"
108
+ LMDB_DISPLAY="${LMDB_LDADD}, ${LMDB_CFLAGS}"
109
+ AC_SUBST ( LMDB_VERSION )
110
+ AC_SUBST ( LMDB_LDADD )
111
+ AC_SUBST ( LMDB_LIBS )
112
+ AC_SUBST ( LMDB_LDFLAGS )
113
+ AC_SUBST ( LMDB_CFLAGS )
114
+ AC_SUBST ( LMDB_DISPLAY )
115
+ fi
111
116
fi
112
117
113
118
You can’t perform that action at this time.
0 commit comments