]> git.ipfire.org Git - thirdparty/krb5.git/commitdiff
Simplify libreadline configure support 920/head
authorGreg Hudson <ghudson@mit.edu>
Tue, 23 Apr 2019 16:41:11 +0000 (12:41 -0400)
committerGreg Hudson <ghudson@mit.edu>
Tue, 23 Apr 2019 16:41:11 +0000 (12:41 -0400)
If configure is explicitly asked to build with libreadline, look for
and link against only -lreadline, relying on the platform to resolve
any dependencies.

ticket: 8795

src/configure.ac

index 7a04d2b57ce8f39d171106b0ef537b36ed1872ae..87d21350d95039a0a53d3c12623da0200a8c52eb 100644 (file)
@@ -1339,9 +1339,9 @@ if test "x$with_libedit" != xno; then
 elif test "x$with_readline" = xyes; then
   AC_MSG_NOTICE([Using GNU Readline])
   AC_CHECK_LIB([readline], [main], :,
-              AC_MSG_FAILURE([Cannot find readline library.]), [-lncurses])
+              AC_MSG_FAILURE([Cannot find readline library.]))
   AC_DEFINE([HAVE_READLINE], 1, [Define if building with GNU Readline.])
-  RL_LIBS='-lreadline -lhistory -lncurses'
+  RL_LIBS='-lreadline'
 else
   AC_MSG_RESULT([Not using any readline support])
 fi