14_fix_readline_check.patch from Debian (Sven Joachim)
This commit is contained in:
parent
fac616761c
commit
bd7c62336d
@ -90,12 +90,12 @@ XQFRCON_LIBS=
|
||||
AC_ARG_ENABLE(externalrcon,[ --enable-externalrcon compile external rcon program (default=no)])
|
||||
if test x$enable_externalrcon = xyes; then
|
||||
AC_CHECK_HEADER(readline/readline.h, have_readline_hdr=yes)
|
||||
AC_CHECK_LIB(readline, readline, have_readline_lib=yes, , -lncurses )
|
||||
AC_CHECK_LIB(readline, readline, have_readline_lib=yes)
|
||||
AC_CHECK_HEADER(readline/history.h, have_history_hdr=yes)
|
||||
AC_CHECK_LIB(readline, add_history, have_history_lib=yes, , -lncurses )
|
||||
AC_CHECK_LIB(readline, add_history, have_history_lib=yes)
|
||||
if test x$have_readline_hdr = xyes -a x$have_readline_lib = xyes; then
|
||||
if test x$have_history_hdr = xyes -a x$have_history_lib = xyes; then
|
||||
XQFRCON_LIBS="-lreadline -lncurses"
|
||||
XQFRCON_LIBS="-lreadline"
|
||||
AC_SUBST(XQFRCON_LIBS)
|
||||
else
|
||||
AC_MSG_WARN([libreadline not found, rcon program disabled])
|
||||
|
Loading…
x
Reference in New Issue
Block a user