* Makefile.am (SUBDIRS): Build lib first, for lib/Automake/Config.pm.
authorAlexandre Duret-Lutz <adl@gnu.org>
Sat, 19 Aug 2006 15:07:40 +0000 (15:07 +0000)
committerAlexandre Duret-Lutz <adl@gnu.org>
Sat, 19 Aug 2006 15:07:40 +0000 (15:07 +0000)
* configure.ac (ACLOCAL): Use --acdir=m4 in addition to
-I m4.  Running aclocal during the rebuild rules will fail
if the default acdir does not exist.

ChangeLog
Makefile.am
Makefile.in
configure
configure.ac

index 3e7e942..7bfc340 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,10 @@
 2006-08-19  Alexandre Duret-Lutz  <adl@gnu.org>
 
+       * Makefile.am (SUBDIRS): Build lib first, for lib/Automake/Config.pm.
+       * configure.ac (ACLOCAL): Use --acdir=m4 in addition to
+       -I m4.  Running aclocal during the rebuild rules will fail
+       if the default acdir does not exist.
+
        * NEWS, configure.ac, m4/init.m4, m4/lispdir.m4, m4/mkdirp.m4:
        Require Autoconf 2.60 instead of some intermediate development
        version.
index 642f318..ee9c802 100644 (file)
 ## Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
 ## 02110-1301, USA.
 
-## We need `.' in SUBDIRS because we want `check' to build `.' before
-## tests.  It should go before `doc', because doc/amhello uses automake.
-SUBDIRS = . doc m4 lib tests
+## lib goes first, because it builds Config.pm, used by aclocal and
+## automake (run in doc, tests, and in the rebuild rules.)
+## `.' goes before doc and check, because the latter two directories
+## run aclocal and automake.
+SUBDIRS = lib . doc m4 tests
 
 bin_SCRIPTS = automake aclocal
 
index b5817fb..689dad0 100644 (file)
@@ -161,7 +161,7 @@ sysconfdir = @sysconfdir@
 target_alias = @target_alias@
 top_builddir = @top_builddir@
 top_srcdir = @top_srcdir@
-SUBDIRS = . doc m4 lib tests
+SUBDIRS = lib . doc m4 tests
 bin_SCRIPTS = automake aclocal
 CLEANFILES = $(bin_SCRIPTS)
 AUTOMAKESOURCES = automake.in aclocal.in
index 7f91cba..1e7b7f9 100755 (executable)
--- a/configure
+++ b/configure
@@ -2193,7 +2193,7 @@ pkgvdatadir="\${datadir}/$PACKAGE-$APIVERSION"
 
 # $AUTOMAKE and $ACLOCAL are always run after a `cd $top_srcdir',
 # hence `.' is really what we want for perllibdir, libdir, and acdir.
-ACLOCAL="perllibdir=`pwd`\"/lib$PATH_SEPARATOR./lib\" `pwd`/aclocal -I m4"
+ACLOCAL="perllibdir=`pwd`\"/lib$PATH_SEPARATOR./lib\" `pwd`/aclocal --acdir=m4 -I m4"
 AUTOMAKE="perllibdir=`pwd`\"/lib$PATH_SEPARATOR./lib\" `pwd`/automake --libdir=lib"
 
 # Extract the first word of "perl", so it can be a program name with args.
index cd9db9b..b4b777e 100644 (file)
@@ -1,6 +1,6 @@
 # Process this file with autoconf to produce a configure script.
 
-# Copyright (C) 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003,
+# Copyright (C) 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2006,
 # 2004, 2006  Free Software Foundation, Inc.
 #
 # This program is free software; you can redistribute it and/or modify
@@ -49,7 +49,7 @@ AC_SUBST([pkgvdatadir], ["\${datadir}/$PACKAGE-$APIVERSION"])
 
 # $AUTOMAKE and $ACLOCAL are always run after a `cd $top_srcdir',
 # hence `.' is really what we want for perllibdir, libdir, and acdir.
-ACLOCAL="perllibdir=`pwd`\"/lib$PATH_SEPARATOR./lib\" `pwd`/aclocal -I m4"
+ACLOCAL="perllibdir=`pwd`\"/lib$PATH_SEPARATOR./lib\" `pwd`/aclocal --acdir=m4 -I m4"
 AUTOMAKE="perllibdir=`pwd`\"/lib$PATH_SEPARATOR./lib\" `pwd`/automake --libdir=lib"
 
 AC_PATH_PROG(PERL, perl)