configure: use -Wundef for C sources

Change-Id: I1cc0d4b54263264fd1ffffb4cf33833ea841acde
diff --git a/configure b/configure
index 2f490f7..e0e2371 100755
--- a/configure
+++ b/configure
@@ -691,6 +691,8 @@
         if enabled mips || [ -z "${INLINE}" ]; then
           enabled extra_warnings || check_add_cflags -Wno-unused-function
         fi
+        # gtest makes heavy use of undefined pre-processor symbols
+        check_cflags "-Wundef" && add_cflags_only "-Wundef"
     fi
 
     if enabled icc; then