--- /dev/null
+--- crossfire-client-1.5.0/configure.in.wiget Mon Mar 10 14:26:56 2003
++++ crossfire-client-1.5.0/configure.in Mon Mar 10 14:44:40 2003
+@@ -74,6 +74,9 @@
+ use_sdl=no, use_sdl=yes)
+
+
++AC_ARG_ENABLE(dmalloc, [ --enable-dmalloc Use dmalloc to debug memory allocations [default=yes]],
++ , enable_dmalloc=yes)
++
+ AC_PROG_CC
+
+ AC_C_BIGENDIAN
+@@ -308,14 +311,17 @@
+
+ AC_CHECK_LIB(png, main, , [AC_MSG_ERROR([You must have the png library installed to compile the client])])
+
+-dnl not strictly needed, but since the X11 client uses it, lets use it here
+-AC_CHECK_LIB(dmalloc, main, DMALLOC_LIB="-ldmalloc")
+-
++DMALLOC_LIB=
++if eval "test x$enable_dmalloc = xyes"; then
++ dnl not strictly needed, but since the X11 client uses it, lets use it here
++ AC_CHECK_LIB(dmalloc, main, DMALLOC_LIB="-ldmalloc")
++ AC_CHECK_HEADERS(dmalloc.h)
++fi
+ AC_SUBST(DMALLOC_LIB)
+
+ dnl Checks for header files.
+ AC_HEADER_STDC
+-AC_CHECK_HEADERS(fcntl.h sys/ioctl.h sys/time.h unistd.h string.h sys/select.h dmalloc.h)
++AC_CHECK_HEADERS(fcntl.h sys/ioctl.h sys/time.h unistd.h string.h sys/select.h)
+
+ dnl Checks for typedefs, structures, and compiler characteristics.
+ AC_C_CONST
--- /dev/null
+--- crossfire-client-1.5.0/gtk/gx11.c.errno Tue Feb 25 08:49:40 2003
++++ crossfire-client-1.5.0/gtk/gx11.c Mon Mar 10 14:51:12 2003
+@@ -64,7 +64,7 @@
+
+ #include "config.h"
+
+-#ifdef __CYGWIN__
++#ifdef HAVE_ERRNO_H
+ #include <errno.h>
+ #endif
+
+--- crossfire-client-1.5.0/common/config.h.in.errno Tue Feb 25 08:49:40 2003
++++ crossfire-client-1.5.0/common/config.h.in Mon Mar 10 14:56:15 2003
+@@ -66,6 +66,9 @@
+ /* Define if you have the <unistd.h> header file. */
+ #undef HAVE_UNISTD_H
+
++/* Define if you have the <errno.h> header file. */
++#undef HAVE_ERRNO_H
++
+ /* Define if you have the m library (-lm). */
+ #undef HAVE_LIBM
+
+--- crossfire-client-1.5.0/configure.in.errno Mon Mar 10 14:52:40 2003
++++ crossfire-client-1.5.0/configure.in Mon Mar 10 14:52:52 2003
+@@ -321,7 +321,7 @@
+
+ dnl Checks for header files.
+ AC_HEADER_STDC
+-AC_CHECK_HEADERS(fcntl.h sys/ioctl.h sys/time.h unistd.h string.h sys/select.h)
++AC_CHECK_HEADERS(fcntl.h sys/ioctl.h sys/time.h unistd.h string.h sys/select.h errno.h)
+
+ dnl Checks for typedefs, structures, and compiler characteristics.
+ AC_C_CONST