Make the tests subdirectory optional.
Otherwise build breaks when check is not installed.
This commit is contained in:
parent
4d7f243777
commit
e27b84f15e
@ -1,4 +1,7 @@
|
|||||||
SUBDIRS = src . tests
|
if COND_WANT_TESTS
|
||||||
|
MAYBE_TESTS = tests
|
||||||
|
endif
|
||||||
|
SUBDIRS = src . $(MAYBE_TESTS)
|
||||||
|
|
||||||
dist_man_MANS = bip.1 bip.conf.5 bipmkpw.1
|
dist_man_MANS = bip.1 bip.conf.5 bipmkpw.1
|
||||||
|
|
||||||
|
@ -44,6 +44,7 @@ PKG_CHECK_MODULES([CHECK], [check >= 0.9.6], [
|
|||||||
AC_CONFIG_FILES([tests/Makefile])
|
AC_CONFIG_FILES([tests/Makefile])
|
||||||
enable_tests=yes
|
enable_tests=yes
|
||||||
], [ enable_tests=no ])
|
], [ enable_tests=no ])
|
||||||
|
AM_CONDITIONAL([COND_WANT_TESTS], [test "$enable_tests" = yes])
|
||||||
|
|
||||||
AC_CHECK_FUNC(backtrace_symbols_fd, [
|
AC_CHECK_FUNC(backtrace_symbols_fd, [
|
||||||
AC_DEFINE(HAVE_BACKTRACE, [], [Use glibc backtrace on fatal()])
|
AC_DEFINE(HAVE_BACKTRACE, [], [Use glibc backtrace on fatal()])
|
||||||
|
Loading…
x
Reference in New Issue
Block a user