AC_DEFINE([ISC_BUFFER_USEINLINE], [1]))
AC_ARG_ENABLE([fuzzing],
- [AS_HELP_STRING([--enable-fuzzing=<afl|libfuzzer>],
+ [AS_HELP_STRING([--enable-fuzzing=<afl|libfuzzer|ossfuzz>],
[Enable fuzzing using American Fuzzy Lop or libFuzzer (default=no)])],
[],
[enable_fuzzing=no])
LDFLAGS="$LDFLAGS -fsanitize=address,undefined"
FUZZ_LDFLAGS="-fsanitize=fuzzer,address,undefined"
FUZZ_LOG_COMPILER="libfuzzer.sh"],
+ [ossfuzz],[
+ AC_MSG_RESULT([using OSS-Fuzz])
+ FUZZ_LDFLAGS="$LIB_FUZZING_ENGINE"],
[*],[AC_MSG_ERROR([You need to explicitly select the fuzzer])])
AM_CONDITIONAL([HAVE_FUZZ_LOG_COMPILER], [test -n "$FUZZ_LOG_COMPILER"])
AC_SUBST([FUZZ_LOG_COMPILER])