From e3e72c421693d3960c5570b9b2dfbaa3ed1c2c3f Mon Sep 17 00:00:00 2001 From: Paul Ackersviller Date: Wed, 28 Nov 2007 02:53:11 +0000 Subject: Merge of 24108 plus yet another tweak: the test for whether we are using ncurses as a library was both wrong and in the wrong place. --- configure.ac | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/configure.ac b/configure.ac index a5d99a637..3f103aa36 100644 --- a/configure.ac +++ b/configure.ac @@ -716,6 +716,17 @@ AC_DEFINE(HAVE_STRNAMES) strnames=yes, strnames=no) AC_MSG_RESULT($strnames) ]) + +dnl If our terminal library is not ncurses, don't try including +dnl any ncurses headers. +AH_TEMPLATE([ZSH_IGNORE_NCURSES], +[Define to 1 to ignore any ncurses library headers found on the system.]) +case $LIBS in + *-lncurses*) ;; + *) + AC_DEFINE(ZSH_IGNORE_NCURSES) ;; +esac + dnl Some systems (Solaris 2.x, Linux Redhat 5.x) require dnl libnsl (Network Services Library) to find yp_all -- cgit 1.4.1