about summary refs log tree commit diff
path: root/configure.ac
diff options
context:
space:
mode:
authorPeter Stephenson <pws@users.sourceforge.net>2007-11-20 16:02:16 +0000
committerPeter Stephenson <pws@users.sourceforge.net>2007-11-20 16:02:16 +0000
commit249b8a21903972fec7df531a8b0b7cc3912de0f9 (patch)
treee1e530bcf26a73515699139dac7155ecd24fae1a /configure.ac
parentbb70fc6fe6a4162f90ed88d5f1739a7cee1f2fde (diff)
downloadzsh-249b8a21903972fec7df531a8b0b7cc3912de0f9.tar.gz
zsh-249b8a21903972fec7df531a8b0b7cc3912de0f9.tar.xz
zsh-249b8a21903972fec7df531a8b0b7cc3912de0f9.zip
24108 plus YAT: fix tests for ncurses headers even more
Diffstat (limited to 'configure.ac')
-rw-r--r--configure.ac21
1 files changed, 11 insertions, 10 deletions
diff --git a/configure.ac b/configure.ac
index fbbd76aca..47ffce5af 100644
--- a/configure.ac
+++ b/configure.ac
@@ -720,16 +720,6 @@ else
 AC_MSG_RESULT(no)
 fi
 
-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
-  ncurses*) ;;
-  *)
-  AC_DEFINE(ZSH_IGNORE_NCURSES) ;;
-esac
-
 AC_MSG_CHECKING(if boolcodes is available)
 AC_TRY_LINK([#ifdef TERM_H_NEEDS_CURSES_H
 #include <curses.h>
@@ -768,6 +758,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