[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[bug-inetutils] fix termcap/ncurses detection order
From: |
Todd R. Eigenschink |
Subject: |
[bug-inetutils] fix termcap/ncurses detection order |
Date: |
Mon, 14 Jun 2004 16:41:04 -0500 |
Since readline will probably depend on ncurses, it's helpful to detect
ncurses/termcap first so that the readline detection has a fighting
chance of working.
--- configure.ac 2002-12-22 23:27:37.000000000 -0500
+++ configure.ac.new 2004-06-14 16:38:14.457833624 -0500
@@ -134,6 +134,17 @@
AC_CHECK_LIB(opie, opiegenerator)
AC_CHECK_LIB(z, gzdopen)
+# See if a termcap library is available (under one of several names)
+IU_LIB_TERMCAP
+# If not, add a bogus version of tgetent to libinetutils, as that's the only
+# function actually used (to check terminal type validity), modulo any
+# dependencies from curses.
+if test -z "$LIBTERMCAP"; then
+ # Some packages include termcap just ;
+ # for those cases, we really don't need termcap.
+ AC_LIBOBJ(stub_tgetent)
+fi
+
# We want to use libreadline if it is available. However, it seems that the
# guile hackers have had problems because there is a Solaris libreadline
# that is different from the GNU libreadline; therefore we test for an obscure
@@ -152,17 +163,6 @@
AC_CHECK_LIB(crypt, crypt, LIBCRYPT=-lcrypt)
AC_SUBST(LIBCRYPT)
-# See if a termcap library is available (under one of several names)
-IU_LIB_TERMCAP
-# If not, add a bogus version of tgetent to libinetutils, as that's the only
-# function actually used (to check terminal type validity), modulo any
-# dependencies from curses.
-if test -z "$LIBTERMCAP"; then
- # Some packages include termcap just ;
- # for those cases, we really don't need termcap.
- AC_LIBOBJ(stub_tgetent)
-fi
-
dnl libutil is a 4.4BSD library that defines several functions handy for
dnl inetutil daemons, doing such things as utmp frobbing, and pty setup.
AC_CHECK_LIB(util, logout, LIBUTIL=-lutil)
- [bug-inetutils] fix termcap/ncurses detection order,
Todd R. Eigenschink <=