Fix the conditional build of tests again.

Per [1], you always output the optional directory Makefile.

[1] https://www.gnu.org/software/automake/manual/html_node/Subdirectories-with-AM_005fCONDITIONAL.html#Subdirectories-with-AM_005fCONDITIONAL
This commit is contained in:
Arnaud Cornet 2018-12-09 16:06:18 -05:00
parent e27b84f15e
commit 0b8269e2d3
1 changed files with 2 additions and 5 deletions

View File

@ -40,10 +40,7 @@ if test "$ap_cv_cc_pie" = "yes"; then
enable_pie=yes
fi
PKG_CHECK_MODULES([CHECK], [check >= 0.9.6], [
AC_CONFIG_FILES([tests/Makefile])
enable_tests=yes
], [ enable_tests=no ])
PKG_CHECK_MODULES([CHECK], [check >= 0.9.6], [enable_tests=yes], [enable_tests=no])
AM_CONDITIONAL([COND_WANT_TESTS], [test "$enable_tests" = yes])
AC_CHECK_FUNC(backtrace_symbols_fd, [
@ -53,7 +50,7 @@ AC_CHECK_FUNC(backtrace_symbols_fd, [
])
AC_CONFIG_FILES([Makefile src/Makefile])
AC_CONFIG_FILES([Makefile src/Makefile tests/Makefile])
AC_OUTPUT
echo OPENSSL: $with_openssl