AC_MSG_ERROR([*** cannot find libmagic on this system])
fi
+AH_TEMPLATE(HAVE_VALGRIND, [define to include debugging support for Valgrind])
+AC_CHECK_HEADER(valgrind/memcheck.h, [AC_DEFINE(HAVE_VALGRIND)], [])
+
AH_TEMPLATE(HAVE_XATTR, [define to compile support for filesystem extended attributes])
AC_ARG_WITH(xattr, [ --with-xattr Enable XATTR support])
HAS_XATTR=""
#endif
#include <utils.h>
#include <mt.h>
+
+#ifdef HAVE_VALGRIND
#include <valgrind/memcheck.h>
+#endif
struct muth *current = NULL;
static ucontext_t mainctxt;