jer         14/11/15 12:13:28

  Added:                tirc-1.2-configure.patch
  Log:
  Fix building against sys-libs/ncurses[tinfo] (bug #528360). Fix CFLAGS 
mangling, resoect CC (bug #423835).
  
  (Portage version: 2.2.14/cvs/Linux x86_64, signed Manifest commit with key 
A792A613)

Revision  Changes    Path
1.1                  net-irc/tirc/files/tirc-1.2-configure.patch

file : 
http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-irc/tirc/files/tirc-1.2-configure.patch?rev=1.1&view=markup
plain: 
http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-irc/tirc/files/tirc-1.2-configure.patch?rev=1.1&content-type=text/plain

Index: tirc-1.2-configure.patch
===================================================================
--- a/configure.in
+++ b/configure.in
@@ -30,7 +30,6 @@
        [tirc_cv_debug="yes"], [tirc_cv_debug="no"])
 if test "$tirc_cv_debug" = yes; then
        AC_DEFINE(DEBUGV)
-       OPTFLAG=${OPTFLAG-"-g"}
 else
        dnl Defining NDEBUG disables the assert() macro.
        AC_DEFINE(NDEBUG)
@@ -351,6 +350,10 @@
                [tirc_cv_have_tparm=no])
 fi
 if test "$tirc_cv_have_tparm" = no; then
+       AC_CHECK_LIB(tinfo, tparm, [tirc_cv_have_tparm=tinfo],
+               [tirc_cv_have_tparm=no])
+fi
+if test "$tirc_cv_have_tparm" = no; then
        AC_CHECK_LIB(curses, tparm, [tirc_cv_have_tparm=curses],
                [tirc_cv_have_tparm=no])
 fi
@@ -715,7 +718,7 @@
 
 dnl Get the optimization and debug stuff out of CFLAGS where the darn stupid
 dnl autoconf dumps them into.
-CFLAGS=`echo $CFLAGS | sed -e 's/-O.//' -e 's/-g//'`
+dnl CFLAGS=`echo $CFLAGS | sed -e 's/-O.//' -e 's/-g//'`
 
 dnl Add efence if configured.
 if test "$tirc_cv_efence" = yes; then




Reply via email to