diff --git a/Configure.h.in b/Configure.h.in
index 2cb58134b59e497c696c9b73b4bd5c4b48d96224..f83b7e46d7bc7bf0dd332853bc7f197bb41a050d 100644
--- a/Configure.h.in
+++ b/Configure.h.in
@@ -22,6 +22,13 @@
 # define kwsysEXPORT @KWSYS_NAMESPACE@_EXPORT
 #endif
 
+/* Disable some warnings inside kwsys source files.  */
+#if defined(KWSYS_NAMESPACE)
+# if defined(__BORLANDC__)
+#  pragma warn -8027 /* function not inlined.  */
+# endif
+#endif
+
 /* Whether kwsys namespace is "kwsys".  */
 #define @KWSYS_NAMESPACE@_NAME_IS_KWSYS @KWSYS_NAME_IS_KWSYS@