* configure.ac, maintMakefile, w32/Makefile.am: Fix autotools issues.
authorPaul Smith <psmith@gnu.org>
Sun, 7 Sep 2014 20:54:36 +0000 (16:54 -0400)
committerPaul Smith <psmith@gnu.org>
Sun, 7 Sep 2014 20:59:37 +0000 (16:59 -0400)
Reported by Paul Eggert <eggert@cs.ucla.edu>

.gitignore
config/.gitignore
configure.ac
maintMakefile
w32/Makefile.am

index 6e3f5a284ea771f668f5ed2aca5280e1dbb9fd29..dd8a4905497a342d0d33da5a480fcd765bcb17fb 100644 (file)
@@ -13,6 +13,7 @@ Makefile
 Makefile.in
 aclocal.m4
 autom4te.cache
+config.cache
 config.h
 config.h.in
 config.log
index 1a0de75f929dc906f8ddbc9a687423588169efc6..d11a4881fb7e8c94aa9e3fa833b64a0884d3137f 100644 (file)
@@ -1,3 +1,4 @@
+ar-lib
 compile
 config.guess
 config.rpath
index ad07a7e1ae244ddf3f030bc2610f840f3c3f4f19..59333d13afa354df5ccb2f6ebfde4432bc4eb3d3 100644 (file)
@@ -27,7 +27,9 @@ AC_CONFIG_HEADERS([config.h])
 
 # Automake setup
 # We have to enable "foreign" because ChangeLog is auto-generated
-AM_INIT_AUTOMAKE([1.11.1 silent-rules foreign -Wall -Werror])
+# We cannot enable -Werror because gettext 0.18.1 has invalid content
+# When we update gettext to 0.18.3 or better we can add it again.
+AM_INIT_AUTOMAKE([1.11.1 silent-rules foreign -Wall])
 
 # Checks for programs.
 AC_USE_SYSTEM_EXTENSIONS
@@ -49,7 +51,6 @@ AC_ISC_POSIX
 AC_MINIX
 
 # Enable gettext, in "external" mode.
-
 AM_GNU_GETTEXT_VERSION([0.18.1])
 AM_GNU_GETTEXT([external])
 
index 69cb5860e8703596a77a9a27d838d3ed5b46064d..7f34860de889d2e2f57d365554d3cf2de5e76aaa 100644 (file)
@@ -141,13 +141,13 @@ ChangeLog: .check-git-HEAD
 ## Updating files.  ##
 ## ---------------- ##
 
-WGET = wget --passive-ftp -nv
+WGET = wget --passive-ftp -np -nv
 ftp-gnu = ftp://ftp.gnu.org/gnu
 
 move_if_change =  if test -r $(target) && cmp -s $(target).t $(target); then \
                    echo $(target) is unchanged; rm -f $(target).t; \
                  else \
-                   mv $(target).t $(target); \
+                   mv -f $(target).t $(target); \
                  fi
 
 # ------------------- #
@@ -159,8 +159,7 @@ move_if_change =  if test -r $(target) && cmp -s $(target).t $(target); then \
 #   http://translation.sf.net/maint/
 #   ftp://tiger.informatik.hu-berlin.de/pub/po/maint/
 
-po_wget_flags =        --recursive --level=1 --no-directories --no-parent \
-               --no-check-certificate
+po_wget_flags =        --recursive --level=1 --no-directories --no-check-certificate
 po_repo = http://translationproject.org/latest/$(PACKAGE)
 .PHONY: do-po-update po-update
 do-po-update:
@@ -169,7 +168,8 @@ do-po-update:
          && mkdir "$$tmppo" \
          && (cd "$$tmppo" \
                && $(WGET) $(po_wget_flags) -A '*.po' $(po_repo)) \
-         && cp "$$tmppo"/*.po $(top_srcdir)/po && rm -rf "$$tmppo"
+         && cp "$$tmppo"/*.po $(top_srcdir)/po \
+         && rm -rf "$$tmppo"
        cd po && $(MAKE) update-po
        $(MAKE) po-check
 
index be757fee4e06449a10748175486e57a560e1a50c..88ca8265e321e4de6b6c4dc53aff75ecbb82a7bc 100644 (file)
@@ -15,6 +15,8 @@
 # You should have received a copy of the GNU General Public License along with
 # this program.  If not, see <http://www.gnu.org/licenses/>.
 
+AUTOMAKE_OPTIONS = subdir-objects
+
 noinst_LIBRARIES = libw32.a
 
 libw32_a_SOURCES =  subproc/misc.c subproc/sub_proc.c subproc/w32err.c \