From ffbba2e6b9b18141e350fac00a23e88becd57b17 Mon Sep 17 00:00:00 2001 From: Giuseppe Scrivano Date: Sat, 15 May 2010 22:58:57 +0200 Subject: [PATCH] Fix some build issues --- src/ChangeLog | 7 +++++++ src/Makefile.am | 13 ++++++------- src/css.l | 1 + 3 files changed, 14 insertions(+), 7 deletions(-) diff --git a/src/ChangeLog b/src/ChangeLog index e29cc914..e6fd4a45 100644 --- a/src/ChangeLog +++ b/src/ChangeLog @@ -1,3 +1,10 @@ +2010-05-15 Giuseppe Scrivano + + * Makefile.am: Quote any path using $(top_srcdir) or $(top_builddir). + (version.c): Remove dependency from configure.ac and Makefile.am. + + * css.l: Include "wget.h". + 2010-05-08 Giuseppe Scrivano * Makefile.am: Update copyright years. diff --git a/src/Makefile.am b/src/Makefile.am index 49afcee4..45bbf865 100644 --- a/src/Makefile.am +++ b/src/Makefile.am @@ -65,19 +65,18 @@ MD5_LDADD = @MD5_LDADD@ cd ../lib && $(MAKE) $(AM_MAKEFLAGS) build_info.c: $(srcdir)/Makefile.am $(srcdir)/build_info.c.in - if test -n "$(VPATH)"; then cp $(srcdir)/build_info.c.in .; fi - $(PERL) $(top_srcdir)/build-aux/build_info.pl \ - $(abs_builddir)/build_info.c + if test -n "$(VPATH)"; then cp "$(srcdir)/build_info.c.in" .; fi + $(PERL) "$(top_srcdir)/build-aux/build_info.pl" \ + "$(abs_builddir)/build_info.c" if test -n "$(VPATH)"; then rm -f build_info.c.in; fi ESCAPEQUOTE = sed -e 's/[\\"]/\\&/g' -e 's/\\"/"/' -e 's/\\";$$/";/' -version.c: $(wget_SOURCES) ../lib/libgnu.a $(MD5_LDADD) \ - $(srcdir)/Makefile.am $(top_srcdir)/configure.ac +version.c: $(wget_SOURCES) ../lib/libgnu.a $(MD5_LDADD) echo '/* version.c */' > $@ echo '/* Autogenerated by Makefile - DO NOT EDIT */' >> $@ echo '' >> $@ echo 'const char *version_string = "@VERSION@"' >> $@ - -hg log -R $(top_srcdir) -r . --template='" ({node|short})"\n' \ + -hg log -R "$(top_srcdir)" -r . --template='" ({node|short})"\n' \ 2>/dev/null >> $@ echo ';' >> $@ echo 'const char *compilation_string = "'$(COMPILE)'";' \ @@ -89,7 +88,7 @@ version.c: $(wget_SOURCES) ../lib/libgnu.a $(MD5_LDADD) \ check_LIBRARIES = libunittest.a libunittest_a_SOURCES = $(wget_SOURCES) test.c build_info.c test.h nodist_libunittest_a_SOURCES = version.c -libunittest_a_CPPFLAGS = -DTESTING -I$(top_builddir)/lib -I$(top_srcdir)/lib +libunittest_a_CPPFLAGS = -DTESTING "-I$(top_builddir)/lib" "-I$(top_srcdir)/lib" libunittest_a_LIBADD = $(LIBOBJS) EXTRA_DIST = build_info.c.in diff --git a/src/css.l b/src/css.l index be777de2..3db668ce 100644 --- a/src/css.l +++ b/src/css.l @@ -33,6 +33,7 @@ Corresponding Source for a non-source form of such a combination shall include the source code for the parts of OpenSSL used as well as that of the covered work. */ +#include "wget.h" #include "css-tokens.h" /* {s}+\/\*[^*]*\*+([^/*][^*]*\*+)*\/ {unput(' '); } */ -- 2.39.2