rc

[fork] interactive rc shell
Log | Files | Refs | README | LICENSE

commit 6c257ad015311fc34c0e2b3625c3c82b1d9e933c
parent e5075712fc1f3150ca42ff7549f770d6c42e35e0
Author: tgoodwin <tgoodwin>
Date:   Wed, 15 Jul 1998 12:36:53 +0000

don't bother finding readline.h and friends

Diffstat:
Mconfigure.ac | 30++++--------------------------
1 file changed, 4 insertions(+), 26 deletions(-)

diff --git a/configure.ac b/configure.ac @@ -290,36 +290,14 @@ AC_ARG_WITH(editline, [ --with-editline Simmule Turner's line editing], AC_DEFINE(EDITLINE) LIBS="$LIBS -ledit", AC_MSG_ERROR(editline library not found))) -dnl Getting readline right is hard. There are (at least) two incompatible versions, -dnl and we need to know which one we are using. There are also two different -dnl names for the include files. -rc_readline_ok=yes +dnl There are (at least) two incompatible versions of readline, and we +dnl need to know which one we are using AC_ARG_WITH(readline, [ --with-readline Bloated GNU line editing], [ - dnl First of all, can we find the library at all? - AC_CHECK_LIB(readline, readline, , [ - rc_readline_err="readline library not found" - rc_readline_ok=no - ], -ltermcap) - dnl Can we find either version of the include files? - AC_CHECK_HEADERS(readline.h readline/readline.h) - case "$ac_cv_header_readline_h" in - no) case "$ac_cv_header_readline_readline_h" in - no) - rc_readline_err="readline include files not found" - rc_readline_ok=no - ;; - esac - ;; - esac - dnl If all is ok, set variables and check for version 2.1, otherwise give warning. - case "$rc_readline_ok" in - no) AC_MSG_ERROR("$rc_readline_err") ;; - yes) + AC_CHECK_LIB(readline, readline, [ AC_DEFINE(READLINE) LIBS="$LIBS -lreadline -ltermcap" AC_CHECK_LIB(readline, _rl_clean_up_for_exit, , AC_DEFINE(READLINE_OLD), -ltermcap) - ;; - esac + ], AC_MSG_ERROR("$rc_readline_err"), -ltermcap) ]) AM_CONDITIONAL(AMC_READLINE, test "${with_readline+set}" = set)