Restored configure test for -Wno-empty-body.

git-svn-id: svn://svn.valgrind.org/valgrind/trunk@10406 a5019735-40e9-0310-863c-91ae7b9d1cf9
diff --git a/configure.in b/configure.in
index b584f19..c982457 100644
--- a/configure.in
+++ b/configure.in
@@ -1196,6 +1196,29 @@
 fi
 
 
+# does this compiler support -Wno-empty-body ?
+
+AC_MSG_CHECKING([if gcc accepts -Wno-empty-body])
+
+safe_CFLAGS=$CFLAGS
+CFLAGS="-Wno-empty-body"
+
+AC_TRY_COMPILE(
+[ ],
+[
+  return 0;
+],
+[
+AC_SUBST([FLAG_W_NO_EMPTY_BODY], [-Wno-empty-body])
+AC_MSG_RESULT([yes])
+],
+[
+AC_SUBST([FLAG_W_NO_EMPTY_BODY], [])
+AC_MSG_RESULT([no])
+])
+CFLAGS=$safe_CFLAGS
+
+
 # does this compiler support -Wno-format-zero-length ?
 
 AC_MSG_CHECKING([if gcc accepts -Wno-format-zero-length])