AC_CHECK_DECL(MHD_OPTION_PER_IP_CONNECTION_LIMIT,
AC_CHECK_LIB([microhttpd], [MHD_start_daemon],
lmhd=1),
- [],[#include "src/include/platform.h"
+ [],[#include "$srcdir/src/include/platform.h"
#include <microhttpd.h>]),,
- [#include "src/include/platform.h"])
+ [#include "$srcdir/src/include/platform.h"])
;;
*)
LDFLAGS="-L$with_microhttpd/lib $LDFLAGS"
AC_CHECK_LIB([microhttpd], [MHD_start_daemon],
EXT_LIB_PATH="-L$with_microhttpd/lib $EXT_LIB_PATH"
lmhd=1),
- [],[#include "src/include/platform.h"
+ [],[#include "$srcdir/src/include/platform.h"
#include <microhttpd.h>]),,
- [#include "src/include/platform.h"])
+ [#include "$srcdir/src/include/platform.h"])
;;
esac
],
AC_CHECK_DECL(MHD_OPTION_PER_IP_CONNECTION_LIMIT,
AC_CHECK_LIB([microhttpd], [MHD_start_daemon],
lmhd=1),
- [],[#include "src/include/platform.h"
+ [],[#include "$srcdir/src/include/platform.h"
#include <microhttpd.h>]),,
- [#include "src/include/platform.h"])])
+ [#include "$srcdir/src/include/platform.h"])])
AM_CONDITIONAL(HAVE_MHD, test x$lmhd = x1)
AC_DEFINE_UNQUOTED([HAVE_MHD], $lmhd, [We have libmicrohttpd])
AC_MSG_RESULT($enable_test_run)
AM_CONDITIONAL([ENABLE_TEST_RUN], [test "x$enable_tests_run" = "xyes"])
+
+# should monkey be used when running (certain) services?
+AC_MSG_CHECKING(whether to run with monkey)
+AC_ARG_ENABLE([monkey],
+ [AS_HELP_STRING([--enable-monkey], [enable running with monkey])],
+ [enable_monkey=${enableval}],
+ [enable_monkey=no])
+AC_MSG_RESULT($enable_monkey)
+AM_CONDITIONAL([ENABLE_MONKEY], [test "x$enable_monkey" = "xyes"])
+if test "x$enable_monkey" = "xyes"
+then
+ MONKEYPREFIX="monkey"
+else
+ MONKEYPREFIX=""
+fi
+AC_SUBST(MONKEYPREFIX)
+
+
# should expensive tests be run?
AC_MSG_CHECKING(whether to run expensive tests)
AC_ARG_ENABLE([expensivetests],