From: Miroslav Lichvar Date: Wed, 15 May 2013 09:50:58 +0000 (+0200) Subject: Try linking readline without ncurses first X-Git-Tag: 1.28-pre1~75 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=02524397c11d720ec26b7fcfe0092f6d02cd47ca;p=thirdparty%2Fchrony.git Try linking readline without ncurses first --- diff --git a/configure b/configure index 7a4443a7..9966e86b 100755 --- a/configure +++ b/configure @@ -482,6 +482,18 @@ if [ $feat_readline = "1" ]; then if [ "x$READLINE_LINK" = "x" ] && [ $try_readline = "1" ]; then if test_code readline 'stdio.h readline/readline.h readline/history.h' \ + "$readline_inc" "$readline_lib $ncurses_lib -lreadline" \ + 'add_history(readline("prompt"));' + then + add_def FEAT_READLINE + READLINE_COMPILE="$readline_inc" + READLINE_LINK="$readline_lib $ncurses_lib -lreadline" + fi + fi + + if [ "x$READLINE_LINK" = "x" ] && [ $try_readline = "1" ]; then + if test_code 'readline with -lncurses' \ + 'stdio.h readline/readline.h readline/history.h' \ "$readline_inc" "$readline_lib $ncurses_lib -lreadline -lncurses" \ 'add_history(readline("prompt"));' then