diff -rubB autoconf-2.59.orig/lib/autoconf/general.m4 autoconf-2.59/lib/autoconf/general.m4
--- autoconf-2.59.orig/lib/autoconf/general.m4	2007-01-19 08:11:05.000000000 +0100
+++ autoconf-2.59/lib/autoconf/general.m4	2007-01-19 08:16:50.000000000 +0100
@@ -2508,7 +2508,7 @@
 # Store the evaluation of the integer EXPRESSION in VARIABLE.
 m4_define([_AC_COMPUTE_INT_RUN],
 [AC_RUN_IFELSE([AC_LANG_INT_SAVE([$3], [$1])],
-	       [$2=`cat conftest.val`], [$4])])
+	       [$2=`cat conftest.val | ${flip}`], [$4])])
 
 
 # _AC_COMPUTE_INT(EXPRESSION, VARIABLE, INCLUDES, IF-FAILS)
diff -rubB autoconf-2.59.orig/lib/m4sugar/m4sh.m4 autoconf-2.59/lib/m4sugar/m4sh.m4
--- autoconf-2.59.orig/lib/m4sugar/m4sh.m4	2007-01-19 08:11:05.000000000 +0100
+++ autoconf-2.59/lib/m4sugar/m4sh.m4	2007-01-19 09:04:05.000000000 +0100
@@ -142,6 +142,14 @@
 ## M4sh Initialization.  ##
 ## --------------------- ##
 
+# i need this afterwards when checking return values from windows
+# compiled programs.
+if test "`uname`" = "Interix"; then
+    flip="flip -M"
+else
+	flip="cat"
+fi
+
 # Be Bourne compatible
 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
   emulate sh
