summaryrefslogtreecommitdiff
path: root/configure.ac
diff options
context:
space:
mode:
authorSergey Poznyakoff <gray@gnu.org.ua>2002-09-30 14:48:57 +0000
committerSergey Poznyakoff <gray@gnu.org.ua>2002-09-30 14:48:57 +0000
commit555c863a85ea16f3b01ea68087192313e812fcf2 (patch)
treecc8c23a8124c4c758076aa4c75f07d29bde3253d /configure.ac
parentf9bc2ab5dae4085e43ccd558b13b9c8baca5bfd8 (diff)
downloadmailutils-555c863a85ea16f3b01ea68087192313e812fcf2.tar.gz
mailutils-555c863a85ea16f3b01ea68087192313e812fcf2.tar.bz2
Changed check for CURSES_LIBS
Diffstat (limited to 'configure.ac')
-rw-r--r--configure.ac6
1 files changed, 4 insertions, 2 deletions
diff --git a/configure.ac b/configure.ac
index 4a60f9bdb..bf1acfa9a 100644
--- a/configure.ac
+++ b/configure.ac
@@ -385,8 +385,10 @@ AC_CHECK_FUNC(socket, [true],
AC_CHECK_LIB(socket, socket, LIBS="-lsocket $LIBS"))
dnl Check for Curses libs.
-AC_CHECK_LIB(ncurses, tputs, CURSES_LIBS="-lncurses",
- AC_CHECK_LIB(curses, tputs, CURSES_LIBS="-lcurses"))
+for lib in ncurses curses termcap
+do
+ AC_CHECK_LIB($lib, tputs, [CURSES_LIBS="-l$lib"; break])
+done
AC_SUBST(CURSES_LIBS)

Return to:

Send suggestions and report system problems to the System administrator.