From: Andre Noll <maan@tuebingen.mpg.de>
Date: Tue, 31 Mar 2015 21:11:10 +0000 (+0000)
Subject: build: Fix curses detection.
X-Git-Tag: v0.5.5~44^2
X-Git-Url: https://git.tue.mpg.de/?a=commitdiff_plain;h=90f9ec2fa02dd5220392770e537759e099b447e3;p=paraslash.git

build: Fix curses detection.

We need to append to the $curses_ldflags variable rather than
overwriting it. Without this fix, --with-curses-libs is effectively
ignored.
---

diff --git a/configure.ac b/configure.ac
index ec9e87de..8095d33a 100644
--- a/configure.ac
+++ b/configure.ac
@@ -208,7 +208,7 @@ LIB_ARG_WITH([curses], [])
 HAVE_CURSES=yes
 AC_CHECK_HEADER(curses.h, [], [HAVE_CURSES=no])
 AC_SEARCH_LIBS([initscr], [ncursesw curses], [], [HAVE_CURSES=no])
-curses_ldflags="$LIBS"
+curses_ldflags="$curses_ldflags $LIBS"
 LIB_SUBST_FLAGS(curses)
 UNSTASH_FLAGS
 ########################################################################### ip_mreqn