dnl
AC_INIT([wget],
- [m4_normalize(esyscmd([sed -e 's/^.*"\(.*\)";$/\1/' src/version.c]))],
+ [1.12-devel],
[bug-wget@gnu.org])
AC_PREREQ(2.61)
-# Make configure depend on the VERSION file, since it's used in AC_INIT
-AC_SUBST([CONFIGURE_DEPENDENCIES], ['$(top_srcdir)/src/version.c'])
-
dnl
dnl What version of Wget are we building?
dnl
dnl The downside was that configure needed to be rebuilt whenever a
dnl new language was added.
dnl
- ALL_LINGUAS=`(cd ${srcdir}/po && ls *.po | sed -e 's/\.po$//' | tr '\012' ' ')`
+ ALL_LINGUAS="en@quot en@boldquot $(cd ${srcdir}/po && ls *.po | sed -e 's/\.po$//' | tr '\012' ' ')"
dnl
dnl Find makeinfo. We used to provide support for Emacs processing
# The following line is losing on some versions of make!
DEFS = @DEFS@ -DSYSTEM_WGETRC=\"$(sysconfdir)/wgetrc\" -DLOCALEDIR=\"$(localedir)\"
- LIBS = @LIBS@ @LIBSSL@ @LIBGNUTLS@
+ LIBS = @LIBS@ @LIBSSL@ @LIBGNUTLS@ @LIBINTL@
bin_PROGRAMS = wget
wget_SOURCES = cmpt.c connect.c convert.c cookies.c ftp.c ftp-basic.c \
EXTRA_wget_SOURCES = mswindows.c
LDADD = $(ALLOCA) $(LIBOBJS)
+# version.c's not really _phony_, but it does need to be generated each run.
+.PHONY: version.c
+version.c: hg-id
+ printf '%s' 'const char *version_string = "@VERSION@' > $@
+ -HG_ID=$$(cat hg-id); [ "$$HG_ID" ] && printf '%s' " ($${HG_ID})" >> $@
+ printf '%s\n' '";' >> $@
+
+.INTERMEDIATE: hg-id
+hg-id:
+ -( hg id | cut -f 1 -d ' ' ) 2>/dev/null > $@
+
check_LIBRARIES = libunittest.a
libunittest_a_SOURCES = $(wget_SOURCES) test.c test.h
libunittest_a_CPPFLAGS = -DTESTING