]> err.no Git - varnish/commitdiff
Really fix TCL build dependency
authortfheen <tfheen@d4fa192b-c00b-0410-8231-f00ffab90ce4>
Fri, 19 Sep 2008 12:17:28 +0000 (12:17 +0000)
committertfheen <tfheen@d4fa192b-c00b-0410-8231-f00ffab90ce4>
Fri, 19 Sep 2008 12:17:28 +0000 (12:17 +0000)
Make sure we never fail even if tclsh is not installed, and make sure
to emit a message if the .c and .h files should be rebuilt.

Fixes: #323
git-svn-id: svn+ssh://projects.linpro.no/svn/varnish/trunk@3202 d4fa192b-c00b-0410-8231-f00ffab90ce4

varnish-cache/configure.ac
varnish-cache/lib/libvcl/Makefile.am

index 58dce5f60fc07da3bfbb1a2e6b3112f03ea561b1..a8d01ee4b09120b96807cc7eaf087e0925941d38 100644 (file)
@@ -221,7 +221,7 @@ fi
 AM_MISSING_HAS_RUN
 AC_CHECK_PROGS(TCLSH, [tclsh tclsh8.4 tclsh8.5], :)
 if test "$TCLSH" = :; then
-  TCLSH=${am_missing_run}tclsh
+  TCLSH="${am_missing_run}tclsh || true"
 fi
 
 # Solaris defines SO_{RCV,SND}TIMEO, but does not implement them.
index dfda4cd9afe7a6206cbc2a0b3ebeb9303b30c7ee..3d5b475c0a6893dd021817ca3e3ee1f425cad76e 100644 (file)
@@ -28,11 +28,11 @@ libvcl_la_SOURCES = \
 EXTRA_DIST = vcc_gen_obj.tcl \
        vcc_gen_fixed_token.tcl
 
-vcc_obj.c: $(srcdir)/vcc_gen_obj.tcl
+$(srcdir)/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 $(top_srcdir)/include/vcl.h $(top_srcdir)/include/vrt.h $(top_srcdir)/include/vrt_obj.h
+$(srcdir)/vcc_fixed_token.c: $(srcdir)/vcc_gen_fixed_token.tcl $(top_srcdir)/include/vcl.h $(top_srcdir)/include/vrt.h $(top_srcdir)/include/vrt_obj.h
        cd $(srcdir) && @TCLSH@ vcc_gen_fixed_token.tcl
 
-vcc_token_defs.h: $(srcdir)/vcc_gen_fixed_token.tcl $(top_srcdir)/include/vcl.h $(top_srcdir)/include/vrt.h $(top_srcdir)/include/vrt_obj.h
+$(srcdir)/vcc_token_defs.h: $(srcdir)/vcc_gen_fixed_token.tcl $(top_srcdir)/include/vcl.h $(top_srcdir)/include/vrt.h $(top_srcdir)/include/vrt_obj.h
        cd $(srcdir) && @TCLSH@ vcc_gen_fixed_token.tcl