]> git.tuebingen.mpg.de Git - paraslash.git/commitdiff
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 ec9e87de949a40a0e47812462cb49d56b8340cbe..8095d33a548d3d9ae01d712c3dc3482a81ba8990 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