libreadline depends on libtermcap on newer glibc releases, at least...

fix autoheader problem
This commit is contained in:
hpa 2003-01-31 02:17:01 +00:00
parent 9e952fed98
commit fb83297f03

View file

@ -172,13 +172,17 @@ AH_TEMPLATE([WITH_READLINE],
PA_WITH_BOOL(readline, 1, PA_WITH_BOOL(readline, 1,
[ --without-readline disable the use of readline command-line editing], [ --without-readline disable the use of readline command-line editing],
[ [
USE_READLINE=true
AC_CHECK_HEADER(readline/readline.h, AC_CHECK_HEADER(readline/readline.h,
[ [
dnl readline may need libtermcap or somesuch...
AC_SEARCH_LIBS(tputs, [termcap terminfo])
AC_SEARCH_LIBS(readline, [readline history], AC_SEARCH_LIBS(readline, [readline history],
[ [
AC_DEFINE(WITH_READLINE) AC_DEFINE(WITH_READLINE)
]) ],
[],
[-ltermcap])
AC_CHECK_HEADERS(readline/history.h) AC_CHECK_HEADERS(readline/history.h)
]) ])
],:) ],:)
@ -194,5 +198,5 @@ AC_PROG_LN_S
AC_PROG_RANLIB AC_PROG_RANLIB
AC_PROG_INSTALL AC_PROG_INSTALL
AC_CONFIG_HEADER(acconfig.h) AC_CONFIG_HEADERS(acconfig.h)
AC_OUTPUT(MCONFIG) AC_OUTPUT(MCONFIG)