From a70c259e0a6de9e4ba9146ac630d19534f842f50 Mon Sep 17 00:00:00 2001 Message-Id: In-Reply-To: <570a59986d52e396aa8a097d1c28ebd22c115552.1240485023.git.ender@altlinux.org> References: <570a59986d52e396aa8a097d1c28ebd22c115552.1240485023.git.ender@altlinux.org> From: Afanasov Dmitry Date: Thu, 23 Apr 2009 14:23:47 +0400 Subject: [PATCH 03/12] alt-changes: fix ncursesw detection when conftest.c is comiled -lncursesw is added to the LDFLAGS when it must be in LIBS variable. --- pinfo/macros/curses.m4 | 6 +++--- 1 files changed, 3 insertions(+), 3 deletions(-) diff --git a/pinfo/macros/curses.m4 b/pinfo/macros/curses.m4 index b42fe7c..5e28504 100644 --- a/pinfo/macros/curses.m4 +++ b/pinfo/macros/curses.m4 @@ -257,8 +257,8 @@ AC_DEFUN([AC_CHECK_CURSES_COMPILE], [ dnl save CFLAGS and LDFLAGS and set new ones CFLAGS_OLD=$CFLAGS CFLAGS="$CFLAGS $curses_includes" - LDFLAGS_OLD=$LDFLAGS - LDFLAGS="$LDFLAGS $curses_libs" + LIBS_OLD=$LIBS + LIBS="$LIBS $curses_libs" dnl do the compile test AC_MSG_CHECKING([if curses is usable]) @@ -288,7 +288,7 @@ AC_DEFUN([AC_CHECK_CURSES_COMPILE], [ dnl restore variables CFLAGS=$CFLAGS_OLD - LDFLAGS=$LDFLAGS_OLD + LIBS=$LIBS_OLD ]) -- 1.6.2.4