diff --git a/configure.ac b/configure.ac index 0b29eeb277..51a56f667d 100644 --- a/configure.ac +++ b/configure.ac @@ -761,6 +761,10 @@ # prelude AC_ARG_ENABLE(prelude, AS_HELP_STRING([--enable-prelude], [Enable Prelude support for alerts]),,[enable_prelude=no]) + # Prelude doesn't work with -Werror + STORECFLAGS="${CFLAGS}" + CFLAGS="${CFLAGS} -Wno-error=unused-result" + AS_IF([test "x$enable_prelude" = "xyes"], [ CFLAGS="$CFLAGS -DPRELUDE" AM_PATH_LIBPRELUDE(0.9.9, , AC_MSG_ERROR(Cannot find libprelude: Is libprelude-config in the path?), no) @@ -776,6 +780,8 @@ LDFLAGS="${LDFLAGS} ${LIBPRELUDE_LIBS}" fi ]) + CFLAGS="${STORECFLAGS}" + # libnet AC_ARG_WITH(libnet_includes,