readline links in -ltermcap -ltinfo too (fixes breakage in static-binary builds)
authorMorgan Deters <mdeters@gmail.com>
Mon, 20 Feb 2012 16:28:44 +0000 (16:28 +0000)
committerMorgan Deters <mdeters@gmail.com>
Mon, 20 Feb 2012 16:28:44 +0000 (16:28 +0000)
config/readline.m4

index ce1d1deda4eb46700f645e6719a8281b9fb32b3c..e97878ffa4ca4ddab00f529d149987fcc767c94f 100644 (file)
@@ -15,13 +15,13 @@ else
   fi
   AC_CHECK_LIB([readline], [readline],
                [AC_CHECK_HEADER([readline/readline.h],
-                  [READLINE_LIBS="-lreadline -lncurses"],
+                  [READLINE_LIBS="-lreadline -lncurses -ltermcap -ltinfo"],
                   [if test "$with_readline" != check; then
                      AC_MSG_FAILURE([cannot find libreadline!])
                    fi])],
                [if test "$with_readline" != check; then
                   AC_MSG_FAILURE([cannot find libreadline!])
-                fi], -lncurses)
+                fi], [-lncurses -ltermcap -ltinfo])
   if test -z "$READLINE_LIBS"; then
     with_readline=no
   else