diff -ruN -x Makefile -x configure -x config.cache -x config.h -x '*.[178]' -x gpm.info -x gpmdoc.ps -x gpmdoc.txt -x gpm-root.c -x 'stamp-h*' -x '*.elc' -x '*.d' gpm-1.19.6.orig/configure.in gpm-1.19.6/configure.in
--- gpm-1.19.6.orig/configure.in	2004-11-14 15:01:09.000000000 -0600
+++ gpm-1.19.6/configure.in	2004-11-14 14:54:17.000000000 -0600
@@ -68,7 +68,7 @@
 
 case $with_curses in
 No|no|N|n) : ;;
-        *) if   test ${ac_cv_header_ncurses_h} = yes || 
+        *) if : || test ${ac_cv_header_ncurses_h} = yes ||
                 test ${ac_cv_header_ncurses_curses_h} = yes ||
                 test ${ac_cv_header_curses_h} = yes ; then
         CURSES_OBJS=libcurses.o ; fi ;;
@@ -91,6 +91,7 @@
 AC_CHECK_FUNCS(vsyslog syslog)
 AC_FUNC_ALLOCA
 
+if false; then		# we actually don't want -lcurses
 case $with_curses in
 No|no|N|n) SHARED_LIBS=-lc ;;
 *)
@@ -111,6 +112,7 @@
     SHARED_LIBS="$LIBS $TERMLIBS -lc"
     LIBS="$LIBS $SAVELIBS" ;;
 esac    
+fi
 
 GPMXTERM=
 AC_SUBST(GPMXTERM)
diff -ruN -x Makefile -x configure -x config.cache -x config.h -x '*.[178]' -x gpm.info -x gpmdoc.ps -x gpmdoc.txt -x gpm-root.c -x 'stamp-h*' -x '*.elc' -x '*.d' gpm-1.19.6.orig/src/libcurses.c gpm-1.19.6/src/libcurses.c
--- gpm-1.19.6.orig/src/libcurses.c	2004-11-14 15:01:09.000000000 -0600
+++ gpm-1.19.6/src/libcurses.c	2004-11-14 14:59:06.000000000 -0600
@@ -28,6 +28,7 @@
 
 #include "headers/gpmInt.h"
 
+#if 0	/* hack - we do not want to depend on libcurses headers */
 #ifdef HAVE_NCURSES_H
 #include <ncurses.h>
 #else
@@ -39,8 +40,13 @@
 #endif /* HAVE_CURSES_H */
 #endif /* HAVE_NCURSES_CURSES_H */
 #endif /* HAVE_NCURSES_H */
-
+#else
+typedef struct _WINDOW WINDOW;
+extern int wgetch(WINDOW *) __attribute__((weak));
+extern WINDOW *stdscr __attribute__((weak));
+#define getch() wgetch(stdscr)
 #define GET(win) ((win) ? wgetch(win) : getch())
+#endif
 
 int Gpm_Wgetch(WINDOW *win)
 {
