1
0
forked from bip/bip

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 committed by Pierre-Louis Bonicoli
parent 936b766905
commit e224f067c1
Signed by untrusted user: pilou
GPG Key ID: ADC2651DDACD3538

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