Add configure option to disable tests

This commit is contained in:
Vincent Torri 2020-05-01 13:07:11 +02:00
parent ceeb3bb4f4
commit 65d07eece1
2 changed files with 8 additions and 1 deletions

View File

@ -1,4 +1,7 @@
SUBDIRS = crypto ssl tls include apps tests man
SUBDIRS = crypto ssl tls include apps man
if ENABLE_TESTS
SUBDIRS += tests
endif
ACLOCAL_AMFLAGS = -I m4
pkgconfigdir = $(libdir)/pkgconfig

View File

@ -66,6 +66,10 @@ AC_ARG_ENABLE([extratests],
AS_HELP_STRING([--enable-extratests], [Enable extra tests that may be unreliable on some platforms]))
AM_CONDITIONAL([ENABLE_EXTRATESTS], [test "x$enable_extratests" = xyes])
AC_ARG_ENABLE([tests],
AS_HELP_STRING([--enable-tests], [Enable tests]))
AM_CONDITIONAL([ENABLE_TESTS], [test "x$enable_tests" = xyes])
# Add CPU-specific alignment flags
old_cflags=$CFLAGS
CFLAGS="$CFLAGS -I$srcdir/include"