configure.ac: fix broken --enable-ossfuzzers option

* Passing `--disable-ossfuzzers` would actually enable fuzzers.
This commit is contained in:
David Seifert 2022-09-13 10:30:28 +02:00
parent 3bd5048f8c
commit bc11600986
No known key found for this signature in database
GPG Key ID: CE36E117202E3842

View File

@ -171,10 +171,8 @@ AC_ARG_ENABLE([test-coverage],
AM_CONDITIONAL([ENABLE_TEST_COVERAGE], [test "x$enable_test_coverage" = "xyes"])
AC_ARG_ENABLE([ossfuzzers],
[AS_HELP_STRING([--enable-ossfuzzers],
[Whether to generate the fuzzers for OSS-Fuzz])],
[have_ossfuzzers=yes], [have_ossfuzzers=no])
AM_CONDITIONAL([USE_OSSFUZZERS], [test "x$have_ossfuzzers" = "xyes"])
[AS_HELP_STRING([--enable-ossfuzzers], [Whether to generate the fuzzers for OSS-Fuzz])])
AM_CONDITIONAL([USE_OSSFUZZERS], [test "x$enable_ossfuzzers" = "xyes"])
AC_SUBST([LIB_FUZZING_ENGINE])
AM_CONDITIONAL([USE_OSSFUZZ_FLAG], [test "x$LIB_FUZZING_ENGINE" = "x-fsanitize=fuzzer"])