Merge branch 'sni'
authorFredrik Tolf <fredrik@dolda2000.com>
Tue, 19 Oct 2010 06:42:47 +0000 (08:42 +0200)
committerFredrik Tolf <fredrik@dolda2000.com>
Tue, 19 Oct 2010 06:42:47 +0000 (08:42 +0200)
configure.in
doc/ashd.doc
doc/htextauth.doc
lib/mt.c

index b77eae8..0f47c26 100644 (file)
@@ -19,6 +19,9 @@ if test "$HAS_MAGIC" = no; then
        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=""
index 986fde1..eb081b7 100644 (file)
@@ -163,4 +163,4 @@ Fredrik Tolf <fredrik@dolda2000.com>
 
 SEE ALSO
 --------
-*htparser*(1)
+*htparser*(1), RFC 2616
index fb32f56..d124652 100644 (file)
@@ -79,4 +79,4 @@ Fredrik Tolf <fredrik@dolda2000.com>
 
 SEE ALSO
 --------
-*ashd*(7)
+*ashd*(7), RFC 2617
index db37936..c4dcf86 100644 (file)
--- a/lib/mt.c
+++ b/lib/mt.c
 #endif
 #include <utils.h>
 #include <mt.h>
+
+#ifdef HAVE_VALGRIND
 #include <valgrind/memcheck.h>
+#endif
 
 struct muth *current = NULL;
 static ucontext_t mainctxt;