build: Fix curses detection.
authorAndre Noll <maan@tuebingen.mpg.de>
Tue, 31 Mar 2015 21:11:10 +0000 (21:11 +0000)
committerAndre Noll <maan@tuebingen.mpg.de>
Tue, 31 Mar 2015 21:11:10 +0000 (21:11 +0000)
We need to append to the $curses_ldflags variable rather than
overwriting it. Without this fix, --with-curses-libs is effectively
ignored.

configure.ac

index ec9e87d..8095d33 100644 (file)
@@ -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