Skip to content
Snippets Groups Projects
Commit d8ca77ce authored by Daniel Salzman's avatar Daniel Salzman
Browse files

configure: don't build libutils if not needed

parent 33ff07e7
Branches
Tags
No related merge requests found
......@@ -117,6 +117,8 @@ AC_ARG_ENABLE([documentation],
AS_HELP_STRING([--disable-documentation], [Don't build Knot DNS documentation]), [], [enable_documentation=yes])
AM_CONDITIONAL([HAVE_DOCS], [test "$enable_documentation" = "yes"])
AM_CONDITIONAL([HAVE_LIBUTILS], test "$enable_utilities" != "no" -o \
"$enable_daemon" != "no")
######################
# Generic dependencies
######################
......
if HAVE_LIBUTILS
noinst_LTLIBRARIES += libknotus.la
libknotus_la_CPPFLAGS = $(AM_CPPFLAGS) $(CFLAG_VISIBILITY) $(libidn2_LIBS) \
......@@ -29,6 +30,7 @@ libknotus_la_SOURCES = \
utils/common/tls.h \
utils/common/token.c \
utils/common/token.h
endif HAVE_LIBUTILS
if HAVE_UTILS
bin_PROGRAMS = kdig khost knsec3hash knsupdate
......
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