From f84efc9c5a13e16a2f4afd1d4c7da7c775425d9b Mon Sep 17 00:00:00 2001 From: qrczak Date: Fri, 30 Mar 2001 05:02:32 +0000 Subject: [PATCH] [project @ 2001-03-30 05:02:31 by qrczak] Replace Readline with a more complete version. Process .hsc files in hslibs. --- acconfig.h | 3 +++ configure.in | 8 ++++++++ mk/config.h.in | 3 +++ 3 files changed, 14 insertions(+) diff --git a/acconfig.h b/acconfig.h index 4e9c8de..b4bbc07 100644 --- a/acconfig.h +++ b/acconfig.h @@ -390,6 +390,9 @@ /* Define if readline plus any additional libs needed for it exist */ #undef HAVE_READLINE_LIBS +/* Define if readline has version >= 4.x. */ +#undef HAVE_READLINE_4 + /* Define if time.h or sys/time.h define the timezone variable */ #undef HAVE_TIMEZONE diff --git a/configure.in b/configure.in index 2a9bc24..e00ce22 100644 --- a/configure.in +++ b/configure.in @@ -847,6 +847,14 @@ else fi AC_SUBST(LibsReadline) +if test "$HaveLibReadline"; then + AC_CHECK_LIB(readline, rl_erase_empty_line, + [AC_DEFINE(HAVE_READLINE_4, 1)], + [AC_DEFINE(HAVE_READLINE_4, 0)]) +else + AC_DEFINE(HAVE_READLINE_4, 0) +fi + dnl ** check for math library FPTOOLS_CHECK_LIBM() AC_SUBST(LIBM) diff --git a/mk/config.h.in b/mk/config.h.in index 67084c7..044ca4c 100644 --- a/mk/config.h.in +++ b/mk/config.h.in @@ -141,6 +141,9 @@ /* Define if readline plus any additional libs needed for it exist */ #undef HAVE_READLINE_LIBS +/* Define if readline has version >= 4.x. */ +#undef HAVE_READLINE_4 + /* Define if time.h or sys/time.h define the timezone variable */ #undef HAVE_TIMEZONE -- 1.7.10.4