summaryrefslogtreecommitdiffstats
path: root/m4/pdns_enable_fuzz_targets.m4
blob: 9973fd93ec338cbbf3f89850a6b2ac8f81e9f31a (plain)
1
2
3
4
5
6
7
8
9
10
11
AC_DEFUN([PDNS_ENABLE_FUZZ_TARGETS], [
  AC_MSG_CHECKING([whether to enable fuzzing targets])
  AC_ARG_ENABLE([fuzz_targets],
    AS_HELP_STRING([--enable-fuzz-targets],
      [enable fuzz targets @<:@default=no@:>@]),
    [enable_fuzz_targets=$enableval],
    [enable_fuzz_targets=no]
  )
  AC_MSG_RESULT([$enable_fuzz_targets])
  AM_CONDITIONAL([FUZZ_TARGETS], [test "x$enable_fuzz_targets" != "xno"])
])