From 4451b088b14ce00f31818a86607ba5db26653efa Mon Sep 17 00:00:00 2001 From: Pavel Roskin Date: Tue, 11 Sep 2001 20:04:33 +0000 Subject: [PATCH] * configure.in: Add -lcurses (for use with S-Lang) to MCLIBS not to LIBS. Don't use unportable "grep -q", use "case" instead. --- ChangeLog | 5 +++++ configure.in | 9 +++++---- 2 files changed, 10 insertions(+), 4 deletions(-) diff --git a/ChangeLog b/ChangeLog index f74ba627d..8092f4456 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,8 @@ +2001-09-11 Pavel Roskin + + * configure.in: Add -lcurses (for use with S-Lang) to MCLIBS not + to LIBS. Don't use unportable "grep -q", use "case" instead. + 2001-09-10 Pavel Roskin * configure.in: Only check for X if --with-tm-x-support has been diff --git a/configure.in b/configure.in index 39deeb55e..7584d17aa 100644 --- a/configure.in +++ b/configure.in @@ -776,7 +776,7 @@ SLang*) return 1; return 0; ], - [LIBS="$LIBS -lcurses" + [MCLIBS="$MCLIBS -lcurses" AC_DEFINE(USE_SETUPTERM, 1, [Define to use function `setupterm' from `curses' library in S-Lang])]) @@ -844,9 +844,10 @@ doc/mc.1 doc/mcedit.1 doc/mcserv.8 intl/Makefile po/Makefile.in ],[sed -e "/POTFILES =/r po/POTFILES" po/Makefile.in > po/Makefile]) -if echo "$screen_manager" | grep -q "SLang" ; then - screen_manager="${screen_manager}${slang_term}" -fi +case $screen_manager in +SLang*) + screen_manager="${screen_manager}${slang_term}" ;; +esac echo " Configuration: