diff options
Diffstat (limited to 'configure.ac')
| -rw-r--r-- | configure.ac | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/configure.ac b/configure.ac index a9de503..cb230fa 100644 --- a/configure.ac +++ b/configure.ac | |||
| @@ -202,6 +202,12 @@ AC_ARG_WITH([fuzzers], | |||
| 202 | [build_fuzzers=${withval}], | 202 | [build_fuzzers=${withval}], |
| 203 | [build_fuzzers=no]) | 203 | [build_fuzzers=no]) |
| 204 | 204 | ||
| 205 | AC_ARG_WITH([tests], | ||
| 206 | [AS_HELP_STRING([--without-tests], | ||
| 207 | [Do not build libplist test suite (default is yes)])], | ||
| 208 | [build_tests=${withval}], | ||
| 209 | [build_tests=yes]) | ||
| 210 | |||
| 205 | if test "x$build_fuzzers" = "xyes"; then | 211 | if test "x$build_fuzzers" = "xyes"; then |
| 206 | if test "x$build_sanitizers" = "xno"; then | 212 | if test "x$build_sanitizers" = "xno"; then |
| 207 | AC_MSG_ERROR([--with-fuzzers implies --with-sanitizers, but --without-sanitizers was given. This does not work.]) | 213 | AC_MSG_ERROR([--with-fuzzers implies --with-sanitizers, but --without-sanitizers was given. This does not work.]) |
| @@ -288,6 +294,7 @@ if test "x$build_fuzzers" = "xyes"; then | |||
| 288 | fi | 294 | fi |
| 289 | 295 | ||
| 290 | AM_CONDITIONAL([BUILD_FUZZERS],[test "x$build_fuzzers" = "xyes"]) | 296 | AM_CONDITIONAL([BUILD_FUZZERS],[test "x$build_fuzzers" = "xyes"]) |
| 297 | AM_CONDITIONAL([BUILD_TESTS],[test "x$build_tests" != "xno"]) | ||
| 291 | 298 | ||
| 292 | if test "x$build_fuzzers" = "xyes" || test "x$build_sanitizers" = "xyes"; then | 299 | if test "x$build_fuzzers" = "xyes" || test "x$build_sanitizers" = "xyes"; then |
| 293 | AS_COMPILER_FLAGS(TEST_CFLAGS, [$CFLAGS]) | 300 | AS_COMPILER_FLAGS(TEST_CFLAGS, [$CFLAGS]) |
