summarylogtreecommitdiffstats
path: root/tinfo.patch
diff options
context:
space:
mode:
authorMichael Lass2017-10-24 17:38:45 +0200
committerMichael Lass2017-10-24 17:42:13 +0200
commit28324a4d374a1655287ec02d83e2ae23c8542f11 (patch)
tree1e9b1b1134bb54cd1d2214f4c83c2fbd78f2dcfa /tinfo.patch
parentbf543f01a7a9e69d289b0abaa3fb4f1137edc01b (diff)
downloadaur-28324a4d374a1655287ec02d83e2ae23c8542f11.tar.gz
Fix build when ncurses was compiled with --with-termlib=tinfo
https://rt.central.org/rt/Ticket/Display.html?id=134420
Diffstat (limited to 'tinfo.patch')
-rw-r--r--tinfo.patch20
1 files changed, 20 insertions, 0 deletions
diff --git a/tinfo.patch b/tinfo.patch
new file mode 100644
index 000000000000..d8e1117d5299
--- /dev/null
+++ b/tinfo.patch
@@ -0,0 +1,20 @@
+diff --git a/src/cf/curses.m4 b/src/cf/curses.m4
+index dc01469f5..352edf9c7 100644
+--- a/src/cf/curses.m4
++++ b/src/cf/curses.m4
+@@ -16,11 +16,15 @@ AC_DEFUN([OPENAFS_CURSES_LIB],
+ [AC_CACHE_VAL([openafs_cv_curses_lib],
+ [save_LIBS="$LIBS"
+ openafs_cv_curses_lib=
++ openafs_cv_tinfo_lib=
+ AC_CHECK_LIB([ncurses], [initscr], [openafs_cv_curses_lib=-lncurses])
+ AS_IF([test "x$openafs_cv_curses_lib" = x],
+ [AC_CHECK_LIB([Hcurses], [initscr], [openafs_cv_curses_lib=-lHcurses])])
+ AS_IF([test "x$openafs_cv_curses_lib" = x],
+ [AC_CHECK_LIB([curses], [initscr], [openafs_cv_curses_lib=-lcurses])])
++ AC_CHECK_LIB([tinfo], [LINES], [openafs_cv_tinfo_lib=-ltinfo])
++ AS_IF([test "x$openafs_cv_tinfo_lib" != x],
++ [openafs_cv_curses_lib="$openafs_cv_curses_lib $openafs_cv_tinfo_lib"])
+ LIBS="$save_LIBS"])
+ LIB_curses="$openafs_cv_curses_lib"
+ AC_SUBST(LIB_curses)