Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: make libcheck fatal if missing with --with-check #255

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 6 additions & 1 deletion configure.ac
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,12 @@ AM_CONDITIONAL(HAVE_STACK_PROTECTOR, test x"$with_stack_protector" = xyes)
AC_ARG_WITH([check], AS_HELP_STRING([--without-check], [Build without check unit testing framework]),[],[with_check=no])
AS_IF([test "x$with_check" = "xyes"], [
AS_IF([test "x$arch" = "xlinux"], [
PKG_CHECK_MODULES([CHECK], [check >= 0.9.4])
check_version=0.9.4
# only check_all gets linked; NOT radvd / radvdump
PKG_CHECK_MODULES([CHECK], [check >= ${check_version}], [found_yes=yes],[found_check=no])
if test "x$found_check" = xno; then
AC_MSG_ERROR("check >= ${check_version} required but not found")
fi
])
])
AM_CONDITIONAL(HAVE_CHECK, test x"$with_check" = xyes)
Expand Down
Loading