]> git.sur5r.net Git - bacula/bacula/commitdiff
Apply readline without TERM_LIB dependency patch from bug #1871
authorKern Sibbald <kern@sibbald.com>
Sun, 10 Jun 2012 07:58:38 +0000 (09:58 +0200)
committerKern Sibbald <kern@sibbald.com>
Sun, 10 Jun 2012 07:58:38 +0000 (09:58 +0200)
bacula/autoconf/configure.in

index ff06afc523925c84183335c6015d4ed3c87a9eb1..2ea786f68d4ac359622745d4f1547601384fb887 100644 (file)
@@ -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"
                    ], [