Commit 669197cd authored by Nils Goroll's avatar Nils Goroll Committed by Martin Blix Grydeland

create a hard dependency on some curses library

parent 3d93b5c4
......@@ -3,10 +3,12 @@
# Disabling building of the tools while api is in flux
#SUBDIRS = varnishreplay
SUBDIRS = varnishadm varnishd varnishlog varnishncsa varnishtest
if VARNISH_CURSES
SUBDIRS += varnishhist
SUBDIRS += varnishstat
SUBDIRS += varnishtop
endif
SUBDIRS = \
varnishadm \
varnishd \
varnishhist \
varnishlog \
varnishncsa \
varnishstat \
varnishtest \
varnishtop
......@@ -86,7 +86,9 @@ LIBS="${save_LIBS}"
AC_SUBST(DL_LIBS)
AX_WITH_CURSES
AM_CONDITIONAL(VARNISH_CURSES, test x$ax_cv_curses = xyes)
if test "x$ax_cv_curses" != xyes; then
AC_MSG_ERROR([requires an X/Open-compatible Curses library])
fi
save_LIBS="${LIBS}"
LIBS=""
......
......@@ -197,9 +197,6 @@ include/varnishlog_synopsis.rst: $(top_builddir)/bin/varnishlog/varnishlog_opt2r
BUILT_SOURCES += include/varnishlog_options.rst \
include/varnishlog_synopsis.rst
# tools which only get built when curses is available
# XXX add varnishstat here when _opt2rst is ready
if VARNISH_CURSES
include/varnishtop_options.rst: $(top_builddir)/bin/varnishtop/varnishtop_opt2rst
$(top_builddir)/bin/varnishtop/varnishtop_opt2rst options > $@
include/varnishtop_synopsis.rst: $(top_builddir)/bin/varnishtop/varnishtop_opt2rst
......@@ -213,8 +210,6 @@ include/varnishhist_synopsis.rst: $(top_builddir)/bin/varnishhist/varnishhist_op
$(top_builddir)/bin/varnishhist/varnishhist_opt2rst synopsis > $@
BUILT_SOURCES += include/varnishhist_options.rst \
include/varnishhist_synopsis.rst
endif
include/vmod_std.rst: $(top_builddir)/lib/libvmod_std/vmod_std.rst
cp $? $@
......
......@@ -14,10 +14,12 @@ dist_man_MANS = \
vsl-query.7 \
varnishadm.1 \
varnishd.1 \
varnishhist.1 \
varnishlog.1 \
varnishncsa.1 \
varnishstat.1 \
varnishtest.1 \
varnishtop.1 \
vmod_directors.3 \
vmod_std.3
......@@ -69,12 +71,6 @@ varnishstat.1: $(top_srcdir)/doc/sphinx/reference/varnishstat.rst
varnishtest.1: $(top_srcdir)/doc/sphinx/reference/varnishtest.rst
${RST2MAN} $(top_srcdir)/doc/sphinx/reference/varnishtest.rst $@
# tools which only get built when curses is available
# XXX add varnishstat here when _opt2rst is ready
if VARNISH_CURSES
dist_man_MANS += varnishtop.1 \
varnishhist.1
varnishtop.1: \
$(top_srcdir)/doc/sphinx/reference/varnishtop.rst \
$(top_srcdir)/doc/sphinx/include/varnishtop_options.rst \
......@@ -86,8 +82,6 @@ varnishhist.1: \
$(top_srcdir)/doc/sphinx/include/varnishhist_options.rst \
$(top_srcdir)/doc/sphinx/include/varnishhist_synopsis.rst
${RST2MAN} $(top_srcdir)/doc/sphinx/reference/varnishhist.rst $@
endif
vmod_std.3: $(top_srcdir)/lib/libvmod_std/vmod_std.man.rst
${RST2MAN} $? $@
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment