Mark Wielaard b525fd
diff -ur valgrind-3.7.0.orig/configure valgrind-3.7.0/configure
Mark Wielaard b525fd
--- valgrind-3.7.0.orig/configure	2012-07-25 15:08:56.846744849 +0200
Mark Wielaard b525fd
+++ valgrind-3.7.0/configure	2012-07-25 15:12:59.690471999 +0200
Mark Wielaard b525fd
@@ -6414,6 +6426,16 @@
Mark Wielaard b525fd
 	DEFAULT_SUPP="glibc-2.34567-NPTL-helgrind.supp ${DEFAULT_SUPP}"
Mark Wielaard b525fd
 	DEFAULT_SUPP="glibc-2.X-drd.supp ${DEFAULT_SUPP}"
Mark Wielaard b525fd
 	;;
Mark Wielaard b525fd
+     2.16)
Mark Wielaard b525fd
+	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: 2.16 family" >&5
Mark Wielaard b525fd
+$as_echo "2.16 family" >&6; }
Mark Wielaard b525fd
+
Mark Wielaard b525fd
+$as_echo "#define GLIBC_2_16 1" >>confdefs.h
Mark Wielaard b525fd
+
Mark Wielaard b525fd
+	DEFAULT_SUPP="glibc-2.X.supp ${DEFAULT_SUPP}"
Mark Wielaard b525fd
+	DEFAULT_SUPP="glibc-2.34567-NPTL-helgrind.supp ${DEFAULT_SUPP}"
Mark Wielaard b525fd
+	DEFAULT_SUPP="glibc-2.X-drd.supp ${DEFAULT_SUPP}"
Mark Wielaard b525fd
+	;;
Mark Wielaard b525fd
      darwin)
Mark Wielaard b525fd
 	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: Darwin" >&5
Mark Wielaard b525fd
 $as_echo "Darwin" >&6; }
Mark Wielaard b525fd
@@ -6434,8 +6456,8 @@
Mark Wielaard b525fd
      *)
Mark Wielaard b525fd
 	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported version ${GLIBC_VERSION}" >&5
Mark Wielaard b525fd
 $as_echo "unsupported version ${GLIBC_VERSION}" >&6; }
Mark Wielaard b525fd
-	as_fn_error "Valgrind requires glibc version 2.2 - 2.15" "$LINENO" 5
Mark Wielaard b525fd
-	as_fn_error "or Darwin libc" "$LINENO" 5
Mark Wielaard b525fd
+	as_fn_error "Valgrind requires glibc version 2.2 - 2.16" "$LINENO" 5
Mark Wielaard b525fd
+	as_fn_error "or Darwin libc" "$LINENO" 5
Mark Wielaard b525fd
 	;;
Mark Wielaard b525fd
 esac
Mark Wielaard b525fd
 
Mark Wielaard b525fd
diff -ur valgrind-3.7.0.orig/configure.in valgrind-3.7.0/configure.in
Mark Wielaard b525fd
--- valgrind-3.7.0.orig/configure.in	2012-07-25 15:08:56.757743484 +0200
Mark Wielaard b525fd
+++ valgrind-3.7.0/configure.in	2012-07-25 15:11:40.138250933 +0200
Mark Wielaard b525fd
@@ -782,6 +782,13 @@
Mark Wielaard b525fd
 	DEFAULT_SUPP="glibc-2.34567-NPTL-helgrind.supp ${DEFAULT_SUPP}"
Mark Wielaard b525fd
 	DEFAULT_SUPP="glibc-2.X-drd.supp ${DEFAULT_SUPP}"
Mark Wielaard b525fd
 	;;
Mark Wielaard b525fd
+     2.16)
Mark Wielaard b525fd
+	AC_MSG_RESULT(2.16 family)
Mark Wielaard b525fd
+	AC_DEFINE([GLIBC_2_16], 1, [Define to 1 if you're using glibc 2.16.x])
Mark Wielaard b525fd
+	DEFAULT_SUPP="glibc-2.X.supp ${DEFAULT_SUPP}"
Mark Wielaard b525fd
+	DEFAULT_SUPP="glibc-2.34567-NPTL-helgrind.supp ${DEFAULT_SUPP}"
Mark Wielaard b525fd
+	DEFAULT_SUPP="glibc-2.X-drd.supp ${DEFAULT_SUPP}"
Mark Wielaard b525fd
+	;;
Mark Wielaard b525fd
      darwin)
Mark Wielaard b525fd
 	AC_MSG_RESULT(Darwin)
Mark Wielaard b525fd
 	AC_DEFINE([DARWIN_LIBC], 1, [Define to 1 if you're using Darwin])
Mark Wielaard b525fd
@@ -795,7 +802,7 @@
Mark Wielaard b525fd
 
Mark Wielaard b525fd
      *)
Mark Wielaard b525fd
 	AC_MSG_RESULT([unsupported version ${GLIBC_VERSION}])
Mark Wielaard b525fd
-	AC_MSG_ERROR([Valgrind requires glibc version 2.2 - 2.15])
Mark Wielaard b525fd
+	AC_MSG_ERROR([Valgrind requires glibc version 2.2 - 2.16])
Mark Wielaard b525fd
 	AC_MSG_ERROR([or Darwin libc])
Mark Wielaard b525fd
 	;;
Mark Wielaard b525fd
 esac