[commit: packages/terminfo] master: configure.ac: check libtinfow before libtinfo (#23) (d8f725f)

git at git.haskell.org git at git.haskell.org
Thu Sep 21 18:07:20 UTC 2017


Repository : ssh://git@git.haskell.org/terminfo

On branch  : master
Link       : http://git.haskell.org/packages/terminfo.git/commitdiff/d8f725fefc22dae45cb982b393c0364dcc24499c

>---------------------------------------------------------------

commit d8f725fefc22dae45cb982b393c0364dcc24499c
Author: Yoshikuni Jujo <PAF01143 at nifty.ne.jp>
Date:   Thu Aug 3 13:20:50 2017 +0900

    configure.ac: check libtinfow before libtinfo (#23)


>---------------------------------------------------------------

d8f725fefc22dae45cb982b393c0364dcc24499c
 configure.ac | 11 ++++++-----
 1 file changed, 6 insertions(+), 5 deletions(-)

diff --git a/configure.ac b/configure.ac
index 0689aa7..e5b3cdc 100644
--- a/configure.ac
+++ b/configure.ac
@@ -18,11 +18,12 @@ AC_ARG_WITH([cc],
             [CC=$withval])
 AC_PROG_CC()
 
-AC_CHECK_LIB(tinfo, setupterm, HaveLibCurses=YES; LibCurses=tinfo,
-  [AC_CHECK_LIB(ncursesw, setupterm, HaveLibCurses=YES; LibCurses=ncursesw,
-    [AC_CHECK_LIB(ncurses, setupterm, HaveLibCurses=YES; LibCurses=ncurses,
-      [AC_CHECK_LIB(curses, setupterm, HaveLibCurses=YES; LibCurses=curses,
-        HaveLibCurses=NO; LibCurses=not-installed)])])])
+AC_CHECK_LIB(tinfow, setupterm, HaveLibCurses=YES; LibCurses=tinfow,
+  [AC_CHECK_LIB(tinfo, setupterm, HaveLibCurses=YES; LibCurses=tinfo,
+    [AC_CHECK_LIB(ncursesw, setupterm, HaveLibCurses=YES; LibCurses=ncursesw,
+      [AC_CHECK_LIB(ncurses, setupterm, HaveLibCurses=YES; LibCurses=ncurses,
+        [AC_CHECK_LIB(curses, setupterm, HaveLibCurses=YES; LibCurses=curses,
+          HaveLibCurses=NO; LibCurses=not-installed)])])])])
 
 if test "x$HaveLibCurses" = "xNO" ; then
     AC_MSG_FAILURE([curses library not found, so this package cannot be built])



More information about the ghc-commits mailing list