On Tue, Apr 10, 2001 at 10:30:12AM +0200, Akim Demaille wrote:
: I prefer Raja's solution for the very reason he described. It's
: really a problem between Automake and aclocal.m4, so it should be
: fixed there, or in configure.in.
aclocal.m4 was so neat and tidy that I put it in configure.in:
Index: Makefile.am
===================================================================
RCS file: /cvs/autoconf/Makefile.am,v
retrieving revision 1.44
diff -u -r1.44 Makefile.am
--- Makefile.am 2001/04/09 19:30:50 1.44
+++ Makefile.am 2001/04/10 11:51:11
@@ -30,12 +30,6 @@
bin_SCRIPTS = autoconf autoheader autoreconf ifnames @PERLSCRIPTS@
EXTRA_SCRIPTS = autoscan autoupdate
-# FIXME: Current Automakes are blind and cannot see inner AC_SUBST,
-# so help it. This is because, in this case, 'aclocal' is bypassed.
-PACKAGE_NAME = @PACKAGE_NAME@
-VERSION = @VERSION@
-PACKAGE = @PACKAGE@
-
# FIXME:
# s/distpackageDATA/dist_pkgdata_DATA/
# s/nodistpackageDATA/nodist_pkgdata_DATA/
Index: configure.in
===================================================================
RCS file: /cvs/autoconf/configure.in,v
retrieving revision 1.43
diff -u -r1.43 configure.in
--- configure.in 2001/03/27 12:02:16 1.43
+++ configure.in 2001/04/10 11:51:11
@@ -43,6 +43,12 @@
AC_SUBST(standards_texi, standards.texi)dnl
fi
+# Automake can't see inner AC_SUBSTS (`aclocal' is bypassed), so we tag the
+# AC_SUBSTS here too.
+AC_SUBST(PACKAGE_NAME)
+AC_SUBST(PACKAGE)
+AC_SUBST(VERSION)
+
AC_OUTPUT(Makefile m4/Makefile man/Makefile doc/Makefile
tests/Makefile tests/atconfig)