readline-required libraries put to the specific READLINE_LIBS (not LIBS)
authorshort <>
Fri, 2 May 2003 08:13:14 +0000 (08:13 +0000)
committershort <>
Fri, 2 May 2003 08:13:14 +0000 (08:13 +0000)
configure.in

index 0cfb94b..2ba0b80 100644 (file)
@@ -120,11 +120,13 @@ then
        for need in "" termcap ncurses; do
                if test "x$need" != "x"
                then
+                       captive_save_LIBS="$LIBS"
                        AC_CHECK_LIB($need, main,,
                                [ need_failed="$need_failed $need"
                                continue ]
                                )
-                       lneed=-l$need
+                       LIBS="$captive_save_LIBS"
+                       lneed="-l$need"
                else
                        lneed=""
                fi