summaryrefslogtreecommitdiff
path: root/qingy-ncurses.patch
blob: 4089d65b6dc7232cfa5a6d755b6a7aa80f1d62eb (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
diff -uNr qingy-0.9.1.orig/configure qingy-0.9.1/configure
--- qingy-0.9.1.orig/configure	2006-08-04 05:32:06.000000000 +0000
+++ qingy-0.9.1/configure	2006-09-25 12:04:46.000000000 +0000
@@ -120,7 +120,7 @@
 # End compile emacs stuff
 
 # Check for ncurses
-	HEADERS="curses.h term.h"
+	HEADERS="ncurses/curses.h ncurses/term.h"
 	NCURSESLIB=""
 
 for ac_header in $HEADERS
diff -uNr qingy-0.9.1.orig/configure.in qingy-0.9.1/configure.in
--- qingy-0.9.1.orig/configure.in	2006-08-04 05:31:52.000000000 +0000
+++ qingy-0.9.1/configure.in	2006-09-25 12:03:03.000000000 +0000
@@ -125,7 +125,7 @@
 # End compile emacs stuff
 
 # Check for ncurses
-	HEADERS="curses.h term.h"
+	HEADERS="ncurses/curses.h ncurses/term.h"
 	NCURSESLIB=""
 	AC_CHECK_HEADERS([$HEADERS],,[AC_MSG_ERROR([$HEADERS_ERROR_MESSAGE])],)
 	AC_CHECK_LIB(ncurses, setupterm, [NCURSESLIB="-lncurses"],[AC_MSG_ERROR([$LIBRARIES_ERROR_MESSAGE])] , )
diff -uNr qingy-0.9.1.orig/src/libraries/misc.c qingy-0.9.1/src/libraries/misc.c
--- qingy-0.9.1.orig/src/libraries/misc.c	2006-08-03 05:49:57.000000000 +0000
+++ qingy-0.9.1/src/libraries/misc.c	2006-09-25 12:03:36.000000000 +0000
@@ -31,14 +31,14 @@
 #endif
 
 #include <ctype.h>
-#include <curses.h>
+#include <ncurses/curses.h>
 #include <pwd.h>
 #include <grp.h>
 #include <netdb.h>
 #include <stdio.h>
 #include <stdlib.h>
 #include <stdarg.h>
 #include <string.h>
-#include <term.h>
+#include <ncurses/term.h>
 #include <time.h>
 #include <unistd.h>
 #include <utmp.h>
--- qingy-0.9.7/configure.in~	2008-12-26 13:57:50.706809401 +0100
+++ qingy-0.9.7/configure.in	2008-12-26 14:01:47.586786061 +0100
@@ -62,8 +62,8 @@
 	HEADERS="ncurses/curses.h ncurses/term.h"
 	NCURSESLIB=""
 	AC_CHECK_HEADERS([$HEADERS],,[AC_MSG_ERROR([$HEADERS_ERROR_MESSAGE])],)
-	AC_CHECK_LIB(ncurses, setupterm, [NCURSESLIB="-lncurses"],[AC_MSG_ERROR([$LIBRARIES_ERROR_MESSAGE])] , )
-	AC_CHECK_LIB(ncurses, tputs,     [NCURSESLIB="-lncurses"],[AC_MSG_ERROR([$LIBRARIES_ERROR_MESSAGE])] , )
+	AC_CHECK_LIB(tinfo, setupterm, [NCURSESLIB="-lncurses -ltinfo"],[AC_MSG_ERROR([$LIBRARIES_ERROR_MESSAGE])] , )
+	AC_CHECK_LIB(tinfo, tputs,     [NCURSESLIB="-lncurses -ltinfo"],[AC_MSG_ERROR([$LIBRARIES_ERROR_MESSAGE])] , )
 	AC_SUBST(NCURSESLIB)
 # End check for ncurses