Enabled use of libedit as alternative to libreadline
This commit is contained in:
@ -174,9 +174,29 @@ dnl The X= in the yes case prevents that -lreadline gets linked twice
|
||||
else
|
||||
READLINE_DEF=
|
||||
fi
|
||||
if test x$READLINE_DEF = x; then
|
||||
AH_TEMPLATE([Xorriso_with_editlinE],
|
||||
[Define to use libedit if not libreadline])
|
||||
AC_ARG_ENABLE(libedit,
|
||||
[ --enable-libedit Enable use of libedit by xorriso if not libreadline, default=yes],
|
||||
, enable_libedit=yes)
|
||||
if test x$enable_libedit = xyes; then
|
||||
dnl Check whether there is development and runtime support.
|
||||
dnl If not, erase this macro which would enable use of el_*(), history*()
|
||||
READLINE_DEF="-DXorriso_with_editlinE"
|
||||
|
||||
LIBBURNIA_ASSERT_EDITLINE
|
||||
|
||||
else
|
||||
READLINE_DEF=
|
||||
fi
|
||||
fi
|
||||
if test x$READLINE_DEF = x-DXorriso_with_readlinE
|
||||
then
|
||||
AC_DEFINE([Xorriso_with_readlinE], [])
|
||||
elif test x$READLINE_DEF = x-DXorriso_with_editlinE
|
||||
then
|
||||
AC_DEFINE([Xorriso_with_editlinE], [])
|
||||
fi
|
||||
|
||||
AH_TEMPLATE([Libisofs_with_aaip_acL], [Define to use ACL capabilities])
|
||||
|
Reference in New Issue
Block a user