Introduced xorriso-standalone ./configure option --disable-libreadline

This commit is contained in:
Thomas Schmitt 2008-10-02 10:55:28 +00:00
parent 8898c58d3c
commit e1c4ed7d17
3 changed files with 17 additions and 5 deletions

View File

@ -74,6 +74,12 @@ The installation creates several alias links pointing to the xorriso binary:
xorrecord starts xorriso with -as cdrecord emulation already enabled
osirrox starts with -osirrox image-to-disk copying already enabled
If you want to avoid dependecy on libreadline although the libreadline
development package is installed, then rather build xorriso by:
./configure --prefix=/usr --disable-libreadline
make clean ; make
Never omit the "make clean" command after switching libreadline enabling.
Drives and Disk File Objects

View File

@ -95,7 +95,10 @@ else
CFLAGS="$CFLAGS -DDEBUG"
fi
AC_ARG_ENABLE(libreadline,
[ --enable-libreadline Enable use of libreadline [default=yes]],
, enable_libreadline=yes)
if test x$enable_libreadline = xyes; then
dnl Check whether there is readline-devel and readline-runtime.
dnl If not, erase this macro which would enable use of readline(),add_history()
READLINE_DEF="-DXorriso_with_readlinE"
@ -103,6 +106,9 @@ dnl The empty yes case obviously causes -lreadline to be linked
AC_CHECK_HEADER(readline/readline.h, AC_CHECK_LIB(readline, readline, , READLINE_DEF= ), READLINE_DEF= )
dnl The X= in the yes case prevents that -lreadline gets linked twice
AC_CHECK_HEADER(readline/history.h, AC_CHECK_LIB(readline, add_history, X= , READLINE_DEF= ), READLINE_DEF= )
else
READLINE_DEF=
fi
AC_SUBST(READLINE_DEF)

View File

@ -1 +1 @@
#define Xorriso_timestamP "2008.10.02.092635"
#define Xorriso_timestamP "2008.10.02.105442"