Skip to content


Subversion checkout URL

You can clone with
Download ZIP
Browse files

????? & 24104: attempt to fix error message on Tru64 Unix

24103: fix zsh.texi dependency on version
24104: dont search for ncurses library if no ncurses.h
  • Loading branch information...
commit c41324baa0a705a55e55a824b9e3bb9eda947e54 1 parent a47971f
Peter Stephenson authored
Showing with 36 additions and 5 deletions.
  1. +10 −0 ChangeLog
  2. +1 −1  Doc/
  3. +8 −0 INSTALL
  4. +17 −4
10 ChangeLog
@@ -1,5 +1,15 @@
2007-11-20 Peter Stephenson <>
+ * 24104: INSTALL, don't search for ncurses if
+ we can't find ncurses.h.
+ * 24103: Doc/ ensure zsh.texi is updated if
+ the version changes.
+ * ????? & 24104: attempt to prevent Tru64 Unix
+ from reporting missing symbols when linking dynamically (not
+ tested).
* unposted: run Util/check_exports and add some mod_export tags.
* unposted: fix .distfiles and for 4.3.4-dev-2.
2  Doc/
@@ -106,7 +106,7 @@ zsh.pdf: $(sdir)/zsh.texi
texi: $(sdir)/zsh.texi
.PHONY: texi
+$(sdir)/zsh.texi: version.yo
$(YODL) -o $@ -I$(sdir) -w ztexi.yo version.yo zsh.yo; \
test -f $@
@@ -328,6 +328,14 @@ use ncursesw may cause problems during building. If so, please report this
to the developers at and attempt to recompile with
--with-term-lib="tinfo termcap ncurses curses" (see below).
+Note that use of ncurses requires the header ncurses.h, so this
+needs to be in the include path. configure will not search for
+ncurses or ncursesw unless this is the case. If you have installed
+ncurses.h in a non-standard place you may need to pass
+CPPFLAGS=-I/usr/local/include (or wherever the header is found) to
+configure. Similarly, you may need to pass LDFLAGS=-L/usr/local/lib
+(or wherever) in order to find the library.
On some systems a suitable development package with a name such as
curses-devel or ncurses-devel needs to be installed before zsh can
be compiled. This is likely to be contained on any installation media,
@@ -636,6 +636,17 @@ AC_CHECK_LIB(c, printf, [LIBS="$LIBS -lc"])
AC_CHECK_LIB(m, pow)
+dnl Various features of ncurses depend on having the right header
+dnl (the system's own curses.h may well not be good enough).
+dnl So don't search for ncurses unless we found the header.
+if test x$ac_cv_header_ncurses_h = xyes; then
+ ncursesw_test=ncursesw
+ ncurses_test=ncurses
+ ncursesw_test=
+ ncurses_test=
dnl Prefer BSD termcap library to SysV curses library, except on certain
dnl SYSV-derived systems. However, if we find terminfo and termcap
dnl stuff in the same library we will use that; typically this
@@ -648,12 +659,13 @@ AC_HELP_STRING([--with-term-lib=LIBS], [search space-separated LIBS for terminal
AC_SEARCH_LIBS(tigetstr, [$termcap_curses_order])
- termcap_curses_order="ncursesw tinfo termcap ncurses curses"
+ termcap_curses_order="$ncursesw_test tinfo termcap $ncurses_test curses"
[case "$host_os" in
- termcap_curses_order="Hcurses ncursesw ncurses curses termcap" ;;
- *) termcap_curses_order="ncursesw tinfo termcap ncurses curses" ;;
+ termcap_curses_order="Hcurses $ncursesw_test $ncurses_test curses termcap" ;;
+ *)
+ termcap_curses_order="$ncursesw_test tinfo termcap $ncurses_test curses" ;;
@@ -2357,7 +2369,8 @@ char *argv[];
case "$host_os" in
- *freebsd*|linux*|irix*|osf*|gnu*|dragonfly*) DLLDFLAGS="${DLLDFLAGS=-shared}" ;;
+ osf*) DLLDFLAGS="${DLLDFLAGS=-shared -expect_unresolved '*'}" ;;
+ *freebsd*|linux*|irix*|gnu*|dragonfly*) DLLDFLAGS="${DLLDFLAGS=-shared}" ;;
sunos*) DLLDFLAGS="${DLLDFLAGS=-assert nodefinitions}" ;;
sysv4*|esix*) DLLDFLAGS="${DLLDFLAGS=-G $ldflags}" ;;
netbsd*) DLLDFLAGS="${DLLDFLAGS=${DLLDARG}-x -shared --whole-archive}" ;;
Please sign in to comment.
Something went wrong with that request. Please try again.