Commit edf9158b authored by Tollef Fog Heen's avatar Tollef Fog Heen

Regenerate generated .c files if we have tclsh installed

As well as the above, add .tcl files to EXTRA_DIST so we can
regenerate them and make distcheck works.


git-svn-id: http://www.varnish-cache.org/svn/trunk/varnish-cache@3196 d4fa192b-c00b-0410-8231-f00ffab90ce4
parent 7d4defb1
......@@ -218,6 +218,12 @@ else
ac_cv_func_port_create=no
fi
AM_MISSING_HAS_RUN
AC_CHECK_PROGS(TCLSH, [tclsh tclsh8.4 tclsh8.5], false)
if test "$TCLSH" = :; then
TCLSH=${am_missing_run}tclsh
fi
# Solaris defines SO_{RCV,SND}TIMEO, but does not implement them.
# Varnish will build and run without these, but connections will not
# time out, which may leave Varnish vulnerable to denail-of-service
......
......@@ -24,3 +24,15 @@ libvcl_la_SOURCES = \
vcc_token.c \
vcc_var.c \
vcc_xref.c
EXTRA_DIST = vcc_gen_obj.tcl \
vcc_gen_fixed_token.tcl
vcc_obj.c: $(srcdir)/vcc_gen_obj.tcl
cd $(srcdir) && @TCLSH@ vcc_gen_obj.tcl
vcc_fixed_token.c: $(srcdir)/vcc_gen_fixed_token.tcl
cd $(srcdir) && @TCLSH@ vcc_gen_fixed_token.tcl
vcc_token_defs.h: $(srcdir)/vcc_gen_fixed_token.tcl
cd $(srcdir) && @TCLSH@ vcc_gen_fixed_token.tcl
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