From 93bce5a700e7f5487e2817eda55ae141da1ceb4e Mon Sep 17 00:00:00 2001
From: sewardj <unknown>
Date: Fri, 12 Nov 1999 15:43:14 +0000
Subject: [PATCH] [project @ 1999-11-12 15:43:12 by sewardj] Add a test for
 libreadline.{a|so}  (include/readline/readline.h is already tested for.).

---
 configure.in   | 3 +++
 mk/config.h.in | 3 +++
 2 files changed, 6 insertions(+)

diff --git a/configure.in b/configure.in
index 3569b8ee3513..c36b9ac29777 100644
--- a/configure.in
+++ b/configure.in
@@ -614,6 +614,9 @@ dnl    the order of these tests matters: bfd needs liberty
 AC_CHECK_LIB(iberty, xmalloc)
 AC_CHECK_LIB(bfd,    bfd_init)
 
+dnl ** check for readline, for Hugs
+AC_CHECK_LIB(readline, readline)
+
 dnl ################################################################
 dnl Check for libraries
 dnl ################################################################
diff --git a/mk/config.h.in b/mk/config.h.in
index 21d1533a3fdb..11e7082e523c 100644
--- a/mk/config.h.in
+++ b/mk/config.h.in
@@ -457,3 +457,6 @@
 
 /* Define if you have the iberty library (-liberty).  */
 #undef HAVE_LIBIBERTY
+
+/* Define if you have the readline library (-lreadline).  */
+#undef HAVE_LIBREADLINE
-- 
GitLab