Skip to content
Snippets Groups Projects
Commit f518de20 authored by Jan Včelák's avatar Jan Včelák :rocket:
Browse files

configure: fix --disable-code-coverage

parent 882e9fe9
Branches
Tags
No related merge requests found
ACLOCAL_AMFLAGS = -I m4
SUBDIRS = libtap src tests samples doc man patches
AM_DISTCHECK_CONFIGURE_FLAGS = \
--disable-code-coverage
code_coverage_quiet = --quiet
check-code-coverage:
......@@ -70,6 +73,4 @@ code-coverage-clean:
-find . -name "*.gcda" -o -name "*.gcov" -delete
endif
DISTCHECK_CONFIGURE_FLAGS = --without-ragel --disable-code-coverage
.PHONY: check-code-coverage code-coverage-initial code-coverage-capture code-coverage-html code-coverage-clean
......@@ -401,5 +401,6 @@ echo "
Ragel: ${RAGEL} ${FSM_TYPE}
Utils with IDN: ${libidn}
Use systemd notifications: ${enable_systemd}
Code coverage: ${enable_code_coverage}
Continue with 'make' command"
......@@ -16,8 +16,9 @@ AC_DEFUN([AX_CODE_COVERAGE], [
dnl Check for --enable-code-coverage
AC_ARG_ENABLE([code-coverage],
AS_HELP_STRING([--enable-code-coverage], [enable code coverage testing with gcov]),
[enable_code_coverage=yes],
[enable_code_coverage=no])
[enable_code_coverage=$enableval],
[enable_code_coverage=no]
)
AM_CONDITIONAL([CODE_COVERAGE_ENABLED], [test "$enable_code_coverage" = "yes"])
AC_SUBST([CODE_COVERAGE_ENABLED], [$enable_code_coverage])
......
......@@ -129,7 +129,7 @@ libknotus_la_SOURCES = \
# dynamic: libknot
libknot_la_LDFLAGS = \
$(CODE_COVERAGE_LDFLAGS) \
$(AM_LDFLAGS) \
-version-info 0:1:0 \
-export-symbols-regex '^(knot|KNOT|rrset|tsig|zone)_'
......@@ -303,7 +303,7 @@ libknotd_la_LIBADD = libknots.la libknot.la
# sbin programs
knotd_LDADD = libknot.la libknotd.la
knotd_CPPFLAGS = $(AM_CPPFLAGS) ${systemd_daemon_CFLAGS}
knotd_LDFLAGS = $(CODE_COVERAGE_LDFLAGS) ${systemd_daemon_LIBS}
knotd_LDFLAGS = $(AM_LDFLAGS) ${systemd_daemon_LIBS}
knotc_LDADD = libknot.la libknotd.la
......
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