- allow readline to be disabled if you want, as in

configure --enable-debugger --disable-readline
This commit is contained in:
Bryce Denney 2001-06-07 02:51:20 +00:00
parent 017691abdc
commit e8d89eb7eb
2 changed files with 233 additions and 190 deletions

385
bochs/configure vendored

File diff suppressed because it is too large Load Diff

View File

@ -427,16 +427,34 @@ AC_ARG_ENABLE(disasm,
)
AC_SUBST(DISASM_VAR)
AC_CHECK_LIB(readline,
readline,
[
if test "$bx_debugger" = 1; then
# only add readline library if debugger is on
AC_DEFINE(HAVE_LIBREADLINE, 1)
READLINE_LIB='-lreadline'
fi
]
)
AC_MSG_CHECKING(whether to use readline)
AC_ARG_ENABLE(readline,
[ --enable-readline use readline library with debugger],
[if test "$enableval" = yes; then
AC_MSG_RESULT(yes)
want_readline=yes
else
AC_MSG_RESULT(no)
want_readline=no
fi],
[ # default is yes
AC_MSG_RESULT(yes)
want_readline=yes ]
)
if test "$want_readline" = yes; then
AC_CHECK_LIB(readline,
readline,
[
if test "$bx_debugger" = 1; then
# only add readline library if debugger is on
AC_DEFINE(HAVE_LIBREADLINE, 1)
READLINE_LIB='-lreadline'
fi
]
)
fi
AC_SUBST(READLINE_LIB)
AC_CHECK_HEADER(readline/history.h,