diff options
| author | Vincent Torri <vincent.torri@gmail.com> | 2020-05-01 13:07:11 +0200 |
|---|---|---|
| committer | Vincent Torri <vincent.torri@gmail.com> | 2020-05-01 13:07:11 +0200 |
| commit | 65d07eece1daee6460bd2d4fcb85253ce9b05ea5 (patch) | |
| tree | 8ae946cacd5b000a066d60f72bac747779d9dd9f | |
| parent | ceeb3bb4f423db4fc29704aa5a4c577f08103194 (diff) | |
| download | portable-65d07eece1daee6460bd2d4fcb85253ce9b05ea5.tar.gz portable-65d07eece1daee6460bd2d4fcb85253ce9b05ea5.tar.bz2 portable-65d07eece1daee6460bd2d4fcb85253ce9b05ea5.zip | |
Add configure option to disable tests
| -rw-r--r-- | Makefile.am | 5 | ||||
| -rw-r--r-- | configure.ac | 4 |
2 files changed, 8 insertions, 1 deletions
diff --git a/Makefile.am b/Makefile.am index 1cf0fc6..6499f07 100644 --- a/Makefile.am +++ b/Makefile.am | |||
| @@ -1,4 +1,7 @@ | |||
| 1 | SUBDIRS = crypto ssl tls include apps tests man | 1 | SUBDIRS = crypto ssl tls include apps man |
| 2 | if ENABLE_TESTS | ||
| 3 | SUBDIRS += tests | ||
| 4 | endif | ||
| 2 | ACLOCAL_AMFLAGS = -I m4 | 5 | ACLOCAL_AMFLAGS = -I m4 |
| 3 | 6 | ||
| 4 | pkgconfigdir = $(libdir)/pkgconfig | 7 | pkgconfigdir = $(libdir)/pkgconfig |
diff --git a/configure.ac b/configure.ac index e584113..7b16ac5 100644 --- a/configure.ac +++ b/configure.ac | |||
| @@ -66,6 +66,10 @@ AC_ARG_ENABLE([extratests], | |||
| 66 | AS_HELP_STRING([--enable-extratests], [Enable extra tests that may be unreliable on some platforms])) | 66 | AS_HELP_STRING([--enable-extratests], [Enable extra tests that may be unreliable on some platforms])) |
| 67 | AM_CONDITIONAL([ENABLE_EXTRATESTS], [test "x$enable_extratests" = xyes]) | 67 | AM_CONDITIONAL([ENABLE_EXTRATESTS], [test "x$enable_extratests" = xyes]) |
| 68 | 68 | ||
| 69 | AC_ARG_ENABLE([tests], | ||
| 70 | AS_HELP_STRING([--enable-tests], [Enable tests])) | ||
| 71 | AM_CONDITIONAL([ENABLE_TESTS], [test "x$enable_tests" = xyes]) | ||
| 72 | |||
| 69 | # Add CPU-specific alignment flags | 73 | # Add CPU-specific alignment flags |
| 70 | old_cflags=$CFLAGS | 74 | old_cflags=$CFLAGS |
| 71 | CFLAGS="$CFLAGS -I$srcdir/include" | 75 | CFLAGS="$CFLAGS -I$srcdir/include" |
