3 @@ -10972,7 +10972,7 @@ if test "${ac_cv_lib_curses_tputs+set}"
4 echo $ECHO_N "(cached) $ECHO_C" >&6
6 ac_check_lib_save_LIBS=$LIBS
8 +#LIBS="-lcurses $LIBS"
9 cat >conftest.$ac_ext <<_ACEOF
12 @@ -11108,7 +11108,8 @@ if test $ac_cv_lib_ncurses_tputs = yes;
13 #define HAVE_LIBNCURSES 1
16 - LIBS="-lncurses $LIBS"
17 +# LIBS="-lncurses $LIBS"
22 @@ -11125,7 +11126,7 @@ if test "${ac_cv_lib_readline_main+set}"
23 echo $ECHO_N "(cached) $ECHO_C" >&6
25 ac_check_lib_save_LIBS=$LIBS
26 -LIBS="-lreadline $LIBS"
27 +LIBS="-lreadline $CURSES $LIBS"
28 cat >conftest.$ac_ext <<_ACEOF
31 @@ -11182,7 +11183,8 @@ if test $ac_cv_lib_readline_main = yes;
32 #define HAVE_LIBREADLINE 1
35 - LIBS="-lreadline $LIBS"
36 +# LIBS="-lreadline $LIBS"
37 +CURSES="$CURSES -lreadline"
41 @@ -11342,7 +11344,7 @@ if test "${ac_cv_lib_readline_rl_complet
42 echo $ECHO_N "(cached) $ECHO_C" >&6
44 ac_check_lib_save_LIBS=$LIBS
45 -LIBS="-lreadline $LIBS"
46 +LIBS="-lreadline $CURSES $LIBS"
47 cat >conftest.$ac_ext <<_ACEOF
50 @@ -11405,7 +11407,7 @@ if test $ac_cv_lib_readline_rl_completio
51 #define HAVE_LIBREADLINE 1
54 - LIBS="-lreadline $LIBS"
55 +# LIBS="-lreadline $LIBS"