Skip to content
Snippets Groups Projects
Commit 6fc76ac4 authored by Marek Vavruša's avatar Marek Vavruša
Browse files

configure: static rr db module is option (--enable-rosedb)

parent 7fc1f78e
No related branches found
No related tags found
No related merge requests found
......@@ -319,6 +319,13 @@ KNOT_CHECK_HEADER([lmdb], [LMDB], [auto], [lmdb.h], [], [-llmdb])
AS_IF([test "$enable_lmdb" = yes], [AC_DEFINE([HAVE_LMDB], [1], [Define to 1 to enable LMDB support])])
AM_CONDITIONAL([HAVE_LMDB], test "$enable_lmdb" != "no")
dnl Check for rosedb module
AC_ARG_ENABLE([rosedb],
AS_HELP_STRING([--disable-rosedb], [Do not enable static RR query module.]),
[], [enable_rosedb=no])
AM_CONDITIONAL([ENABLE_ROSEDB], [test "$enable_rosedb" = yes])
AS_IF([test "$enable_rosedb" = yes], [AC_DEFINE([HAVE_ROSEDB], [1], [Define to 1 to enable static RR query module.])])
AC_SEARCH_LIBS([pow], [m])
AC_SEARCH_LIBS([pthread_create], [pthread], [], [AC_MSG_ERROR([pthreads not found])])
AC_SEARCH_LIBS([dlopen], [dl])
......
......@@ -371,7 +371,7 @@ libknotd_la_LIBADD += dnstap/libdnstap.la
endif
# rose sources and client tool
if HAVE_LMDB
if ENABLE_ROSEDB
libknotd_la_SOURCES += \
knot/modules/rosedb.c \
knot/modules/rosedb.h
......
......@@ -6,7 +6,7 @@
/* Compiled-in module headers. */
#include "knot/modules/synth_record.h"
#include "knot/modules/dnsproxy.h"
#ifdef HAVE_LMDB
#ifdef ENABLE_ROSEDB
#include "knot/modules/rosedb.h"
#endif
#if USE_DNSTAP
......@@ -24,7 +24,7 @@ struct compiled_module {
struct compiled_module MODULES[] = {
{ "synth_record", &synth_record_load, &synth_record_unload },
{ "dnsproxy", &dnsproxy_load, &dnsproxy_unload },
#ifdef HAVE_LMDB
#ifdef ENABLE_ROSEDB
{ "rosedb", &rosedb_load, &rosedb_unload },
#endif
#if USE_DNSTAP
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment