diff -ruHpN jikes/src/configure.in jikes.patched/src/configure.in
--- jikes/src/configure.in	Tue Mar  9 09:49:41 1999
+++ jikes.patched/src/configure.in	Sat Apr  3 12:43:51 1999
@@ -290,8 +290,20 @@ else
 fi
 
 
-
-
+#--------------------------------------------------------------------
+# 	Check for libc brokenness (linux libc5, maybe others?)
+#--------------------------------------------------------------------
+AC_CACHE_CHECK(for a broken wchar.h, jikes_cv_broken_wchar,
+	AC_TRY_COMPILE([#include <wchar.h>],[wint_t foo;],
+	jikes_cv_broken_wchar=no, jikes_cv_broken_wchar=yes))
+if test $jikes_cv_broken_wchar = yes; then
+	AC_TRY_COMPILE([
+#include "libc5-fix.h"
+#include <wchar.h>
+],[wint_t foo;],
+	CCREQUIREDFLAGS="$CCREQUIREDFLAGS -include libc5-fix.h",
+	AC_MSG_ERROR([Can't fix broken wchar.h]))
+fi
 
 # Subst variables into Makefile.in to produce the Makefile
 
diff -ruHpN jikes/src/libc5-fix.h jikes.patched/src/libc5-fix.h
--- jikes/src/libc5-fix.h	Wed Dec 31 19:00:00 1969
+++ jikes.patched/src/libc5-fix.h	Sat Apr  3 12:22:34 1999
@@ -0,0 +1 @@
+typedef unsigned int wint_t;
