From: Kern Sibbald Date: Sun, 10 Jun 2012 07:58:38 +0000 (+0200) Subject: Apply readline without TERM_LIB dependency patch from bug #1871 X-Git-Tag: Release-5.2.8~4 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=6100b25e930cbf4020333cc1350495dc138ff6b1;p=bacula%2Fbacula Apply readline without TERM_LIB dependency patch from bug #1871 --- diff --git a/bacula/autoconf/configure.in b/bacula/autoconf/configure.in index ff06afc523..2ea786f68d 100644 --- a/bacula/autoconf/configure.in +++ b/bacula/autoconf/configure.in @@ -854,9 +854,6 @@ AC_ARG_ENABLE(readline, fi ] ) -if test x$TERM_LIB = x ; then - support_readline=no -fi got_readline="no" READLINE_SRC= @@ -883,7 +880,7 @@ if test x$support_readline = xyes; then AC_CHECK_HEADER(${with_readline}/readline.h, [ AC_DEFINE(HAVE_READLINE, 1, [Set to enable readline support]) - CONS_LIBS="-lreadline -lhistory $TERM_LIB" + CONS_LIBS="-lreadline -lhistory" got_readline="yes" ], [ echo " " @@ -900,7 +897,7 @@ if test x$support_readline = xyes; then AC_DEFINE(HAVE_READLINE, 1, [Set to enable readline support]) got_readline="yes" CONS_INC="-I/usr/include/readline" - CONS_LIBS="-lreadline $TERM_LIB" + CONS_LIBS="-lreadline" ], [ dnl Did not find standard library, so try Bacula's default AC_CHECK_HEADER(${TOP_DIR}/depkgs/readline/readline.h, @@ -908,7 +905,7 @@ if test x$support_readline = xyes; then AC_DEFINE(HAVE_READLINE, 1, [Set to enable readline support]) got_readline="yes" CONS_INC="-I${TOP_DIR}/depkgs/readline" - CONS_LIBS="-lreadline -lhistory $TERM_LIB" + CONS_LIBS="-lreadline -lhistory" CONS_LDFLAGS="-L${TOP_DIR}/depkgs/readline" PRTREADLINE_SRC="${TOP_DIR}/depkgs/readline" ], [