Reported by Markus Gothe at https://savannah.gnu.org/bugs/index.php?49862 .
The AC_SUBSTed variable @localedir@ is supported since Autoconf 2.60.
* gettext-runtime/intl/Makefile.in (localedir): Set to @localedir@. Suggested
by Markus Gothe <nietzsche@lysator.liu.se>.
* gettext-runtime/m4/intldir.m4: Require Autoconf 2.60 or newer.
* gettext-tools/doc/gettext.texi (src/Makefile): Assume Autoconf 2.60 or newer.
# Makefile for directory with message catalog handling library of GNU gettext
-# Copyright (C) 1995-1998, 2000-2007, 2009-2016 Free Software Foundation, Inc.
+# Copyright (C) 1995-1998, 2000-2007, 2009-2017 Free Software Foundation, Inc.
#
# This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU Lesser General Public License as published by
includedir = @includedir@
datarootdir = @datarootdir@
datadir = @datadir@
-localedir = $(datadir)/locale
+localedir = @localedir@
gettextsrcdir = $(datadir)/gettext/intl
aliaspath = $(localedir)
subdir = intl
-# intldir.m4 serial 2 (gettext-0.18)
-dnl Copyright (C) 2006, 2009-2014, 2016 Free Software Foundation, Inc.
+# intldir.m4 serial 3 (gettext-0.19.9)
+dnl Copyright (C) 2006, 2009-2014, 2016-2017 Free Software Foundation, Inc.
dnl This file is free software; the Free Software Foundation
dnl gives unlimited permission to copy and/or distribute it,
dnl with or without modifications, as long as this notice is preserved.
dnl gettext package is covered by the GNU General Public License.
dnl They are *not* in the public domain.
-AC_PREREQ([2.52])
+AC_PREREQ([2.60])
dnl Tells the AM_GNU_GETTEXT macro to consider an intl/ directory.
AC_DEFUN([AM_GNU_GETTEXT_INTL_SUBDIR], [])
It also serves as a reference for the free Translation Project.
@copying
-Copyright (C) 1995-1998, 2001-2016 Free Software Foundation, Inc.
+Copyright (C) 1995-1998, 2001-2017 Free Software Foundation, Inc.
This manual is free documentation. It is dually licensed under the
GNU FDL and the GNU GPL. This means that you can redistribute this
@end example
To make LOCALEDIR known to the program, add the following lines to
-@file{Makefile.in} if you are using Autoconf version 2.60 or newer:
+@file{Makefile.in}:
@example
datadir = @@datadir@@
DEFS = -DLOCALEDIR=\"$(localedir)\" @@DEFS@@
@end example
-or these lines if your version of Autoconf is older than 2.60:
-
-@example
-datadir = @@datadir@@
-localedir = $(datadir)/locale
-DEFS = -DLOCALEDIR=\"$(localedir)\" @@DEFS@@
-@end example
-
-Note that @code{@@datadir@@} defaults to @samp{$(prefix)/share}, thus
+Note that @code{@@datadir@@} defaults to @samp{$(prefix)/share}, and
@code{$(localedir)} defaults to @samp{$(prefix)/share/locale}.
@item