summaryrefslogtreecommitdiff
blob: 0fcfe3aa18466be6dde78b806e9b631faf54468a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
--- a/configure.ac
+++ b/configure.ac
@@ -279,9 +279,10 @@
   olibs="$LIBS"
   AC_CHECK_LIB(termcap, tgetent, LIBS="-ltermcap $olibs",
     AC_CHECK_LIB(termlib, tgetent, LIBS="-ltermlib $olibs",
-      AC_CHECK_LIB(curses, tgetent, LIBS="-lcurses $olibs",
-        AC_CHECK_LIB(xtermcap, tgetent, LIBS="-lxtermcap $olibs",
-          AC_MSG_ERROR([i can not find tgetent.  you need to help me])))))
+      AC_CHECK_LIB(tinfo, tgetent, LIBS="-ltinfo $olibs",
+        AC_CHECK_LIB(curses, tgetent, LIBS="-lcurses $olibs",
+          AC_CHECK_LIB(xtermcap, tgetent, LIBS="-lxtermcap $olibs",
+            AC_MSG_ERROR([i can not find tgetent.  you need to help me]))))))
 fi
 
 dnl ----------------------------------------------------------