From b690168285e32a4eb7fd5157f68a75d598ef3eba Mon Sep 17 00:00:00 2001
From: sewardj <unknown>
Date: Wed, 1 Dec 1999 11:50:34 +0000
Subject: [PATCH] [project @ 1999-12-01 11:50:31 by sewardj] Make
 <readline/history.h> a requirement for use of libreadline.

---
 configure.in            | 2 +-
 ghc/interpreter/input.c | 6 +++---
 mk/config.h.in          | 3 +++
 3 files changed, 7 insertions(+), 4 deletions(-)

diff --git a/configure.in b/configure.in
index 7560488ccd30..3ea7098dc204 100644
--- a/configure.in
+++ b/configure.in
@@ -474,7 +474,7 @@ dnl ** check for full ANSI header (.h) files
 AC_HEADER_STDC
 
 dnl ** check for specific header (.h) files that we are interested in
-AC_CHECK_HEADERS(Files.h assert.h console.h ctype.h dirent.h errno.h fcntl.h float.h ftw.h grp.h ieee754.h malloc.h memory.h nlist.h pascal.h pwd.h sgtty.h siginfo.h signal.h stat.h stdlib.h stdarg.h string.h sys/fault.h sys/file.h sys/ioctl.h sys/limits.h sys/mman.h sys/param.h sys/procfs.h sys/resource.h sys/signal.h sys/socket.h netinet/tcp.h sys/stat.h sys/syscall.h sys/time.h sys/timeb.h sys/timers.h sys/times.h sys/types.h sys/utsname.h sys/vadvise.h sys/wait.h termio.h termios.h time.h types.h unistd.h utime.h values.h vfork.h readline/readline.h bfd.h winsock.h)
+AC_CHECK_HEADERS(Files.h assert.h console.h ctype.h dirent.h errno.h fcntl.h float.h ftw.h grp.h ieee754.h malloc.h memory.h nlist.h pascal.h pwd.h sgtty.h siginfo.h signal.h stat.h stdlib.h stdarg.h string.h sys/fault.h sys/file.h sys/ioctl.h sys/limits.h sys/mman.h sys/param.h sys/procfs.h sys/resource.h sys/signal.h sys/socket.h netinet/tcp.h sys/stat.h sys/syscall.h sys/time.h sys/timeb.h sys/timers.h sys/times.h sys/types.h sys/utsname.h sys/vadvise.h sys/wait.h termio.h termios.h time.h types.h unistd.h utime.h values.h vfork.h readline/readline.h readline/history.h bfd.h winsock.h)
 
 dnl ** check for DOS include files
 AC_CHECK_HEADERS(dos.h conio.h io.h std.h) 
diff --git a/ghc/interpreter/input.c b/ghc/interpreter/input.c
index 82ca2361356d..501b5c75dd76 100644
--- a/ghc/interpreter/input.c
+++ b/ghc/interpreter/input.c
@@ -9,8 +9,8 @@
  * included in the distribution.
  *
  * $RCSfile: input.c,v $
- * $Revision: 1.14 $
- * $Date: 1999/11/29 18:59:27 $
+ * $Revision: 1.15 $
+ * $Date: 1999/12/01 11:50:34 $
  * ------------------------------------------------------------------------*/
 
 #include "prelude.h"
@@ -33,7 +33,7 @@
 #undef IN
 #endif
 
-#if HAVE_LIBREADLINE && HAVE_READLINE_READLINE_H
+#if HAVE_LIBREADLINE && HAVE_READLINE_READLINE_H && HAVE_READLINE_HISTORY_H
 #define USE_READLINE 1
 #else
 #define USE_READLINE 0
diff --git a/mk/config.h.in b/mk/config.h.in
index 6dd7e89f37db..5b023ebe41c1 100644
--- a/mk/config.h.in
+++ b/mk/config.h.in
@@ -338,6 +338,9 @@
 /* Define if you have the <pwd.h> header file.  */
 #undef HAVE_PWD_H
 
+/* Define if you have the <readline/history.h> header file.  */
+#undef HAVE_READLINE_HISTORY_H
+
 /* Define if you have the <readline/readline.h> header file.  */
 #undef HAVE_READLINE_READLINE_H
 
-- 
GitLab