tags 429825 patch
diff -ruN centerim-4.22.0.anibal/configure.ac centerim-4.22.0/configure.ac
--- centerim-4.22.0.anibal/configure.ac	2007-06-10 07:19:54.000000000 +0400
+++ centerim-4.22.0/configure.ac	2007-06-21 14:24:18.000000000 +0400
@@ -82,6 +82,11 @@
                               characters in your texts in Chinese or Japanese
                               diappear])
               )
+AC_ARG_ENABLE(ncursesw,
+              AS_HELP_STRING([--disable-ncursesw], [disable link with ncursesw]),
+	      link_ncursesw="$enableval",
+	      link_ncursesw="yes"
+	     )
 
 AC_ARG_WITH(fribidi,
             AS_HELP_STRING([--with-fribidi=[DIR]], [enable Hebrew and Arabic
@@ -316,9 +321,15 @@
 
 AC_CHECK_LIB(socket, socket)
 AC_CHECK_LIB(nsl, gethostbyname)
+
+if test "x$link_ncursesw" = "xyes"; then
 AC_CHECK_LIB(ncursesw, get_wch,, [AC_CHECK_LIB(ncurses, initscr,,
                                   [AC_CHECK_LIB(curses, initscr,,
                                    AC_MSG_ERROR(The ncurses terminal library is required in order to build the program))])])
+else
+AC_CHECK_LIB(ncurses, initscr,, 
+	[AC_CHECK_LIB(curses, initscr,, AC_MSG_ERROR(The ncurses terminal library is required in order to build the program))])
+fi
 
 AC_TRY_COMPILE([
     #include <sys/types.h>
diff -ruN centerim-4.22.0.anibal/debian/control centerim-4.22.0/debian/control
--- centerim-4.22.0.anibal/debian/control	2007-06-21 14:58:26.000000000 +0400
+++ centerim-4.22.0/debian/control	2007-06-21 14:42:33.000000000 +0400
@@ -2,7 +2,7 @@
 Section: net
 Priority: optional
 Maintainer: Anibal Avelar (Fixxxer) <[EMAIL PROTECTED]>
-Build-Depends: debhelper (>= 4.0), libncurses5-dev, gettext (>= 0.10), libfribidi-dev (>= 0.10.4-4), dpatch, autotools-dev, libgnutls-dev, perl, libncursesw5-dev, libcurl4-gnutls-dev | libcurl3-gnutls-dev , libgpgme11-dev, automake1.4, liblzo-dev
+Build-Depends: debhelper (>= 4.0), libncurses5-dev, libncursesw5-dev, gettext (>= 0.10), libfribidi-dev (>= 0.10.4-4), dpatch, autotools-dev, libgnutls-dev, perl, libcurl4-gnutls-dev | libcurl3-gnutls-dev , libgpgme11-dev, automake1.4, liblzo-dev, autoconf
 Build-Conflicts: libglib1.2-dev, libcurl4-openssl-dev , libcurl3-openssl-dev
 Standards-Version: 3.7.2
 
@@ -43,7 +43,7 @@
  Centerim is a text mode menu- and window-driven IM client program that 
  supports the ICQ2000, Yahoo!, AIM, MSN, IRC and Jabber protocols. 
  .
- This is a version of centerim linked with libncursesw5. It may be buggy.
+ This is a version of centerim linked without libncursesw5.
  .
  Sox is required to play sounds on events (play binary).
 
diff -ruN centerim-4.22.0.anibal/debian/rules centerim-4.22.0/debian/rules
--- centerim-4.22.0.anibal/debian/rules	2007-06-21 14:58:26.000000000 +0400
+++ centerim-4.22.0/debian/rules	2007-06-21 14:30:52.000000000 +0400
@@ -33,6 +33,7 @@
 config_sub=/usr/share/misc/config.sub
 config_guess=/usr/share/misc/config.guess
 config.status: configure
+	autoconf -v
 	ln -s $(config_sub) ./kkconsui/config.sub
 	ln -s $(config_sub) ./libgadu/config.sub
 	ln -s $(config_sub) ./firetalk/config.sub
@@ -51,6 +52,7 @@
 	--build=$(DEB_BUILD_GNU_TYPE)				\
 	--prefix=/usr --mandir=\$${prefix}/share/man		\
 	--infodir=\$${prefix}/share/info			\
+	--disable-ncursesw 					\
 	--with-included-gettext --with-ssl --with-openssl=no
 	touch libmsn/msn/Makefile.am
 
@@ -75,6 +77,7 @@
 	--build=$(DEB_BUILD_GNU_TYPE)				\
 	--mandir=\$${prefix}/share/man --prefix=/usr		\
 	--infodir=\$${prefix}/share/info			\
+	--disable-ncursesw 					\
 	--with-included-gettext --with-fribidi=/usr --with-ssl
 	perl -p -i -e "s:^LIBS = (.*)$$:LIBS = \1 -lfribidi:" src/Makefile
 	$(MAKE)

Attachment: signature.asc
Description: Digital signature



Reply via email to