[Gc]: Maintainers attention: libatomic_ops

Petter Urkedal urkedal at nbi.dk
Thu Oct 1 13:02:15 PDT 2009


On 2009-10-01, Ivan Maidanski wrote:
> Ok. I've installed it, deleted libtool.m4 and run autoreconf -vif. It prints:
> 
> libtoolize: You should add the contents of the following files to `aclocal.m4':
> libtoolize:   `/usr/local/share/aclocal/libtool.m4'
> libtoolize:   `/usr/local/share/aclocal/ltoptions.m4'
> libtoolize:   `/usr/local/share/aclocal/ltversion.m4'
> libtoolize:   `/usr/local/share/aclocal/ltsugar.m4'
> libtoolize:   `/usr/local/share/aclocal/lt~obsolete.m4'
> 
> What does this mean?

aclocal.m4 is a collection of macros which goes into configure.ac.  It
includes acinclude.m4 and picks up from /usr/share/aclocal and any -I
options passed to aclocal those macros which occurs in configure.ac.  I
don't know exactly why libtoolize asks you to do this, because it should
be done automatically by aclocal, but I think it'll be happy if we
declare AC_CONFIG_MACRO_DIR.  See the attached patch.  libtoolize should
now put the m4 files into the m4 subdirectory, but I suggest not to
commit them to the repo.

We could also tidy the top-level directory by declaring
AC_CONFIG_AUX_DIR as in the second patch.  Note that the files compile,
config.guess, config.sub, install-sh, and missing should then be removed
from the top dir and the files in build-aux/ committed instead.
-------------- next part --------------
diff --git a/Makefile.am b/Makefile.am
index a473cdb..cafc6fd 100644
--- a/Makefile.am
+++ b/Makefile.am
@@ -32,6 +32,7 @@
 # endif
 SUBDIRS =
 
+ACLOCAL_AMFLAGS = -I m4
 AM_CPPFLAGS = -I$(top_builddir)/include -I$(top_srcdir)/include
 if USE_INTERNAL_LIBATOMIC_OPS
 AM_CPPFLAGS += -I$(top_builddir)/libatomic_ops/src \
diff --git a/configure.ac b/configure.ac
index f1dcd65..0cc8574 100644
--- a/configure.ac
+++ b/configure.ac
@@ -20,6 +20,7 @@ dnl Process this file with autoconf to produce configure.
 AC_INIT(gc,7.2alpha3,Hans.Boehm at hp.com) 
     ## version must conform to [0-9]+[.][0-9]+(alpha[0-9]+)?
 AC_CONFIG_SRCDIR(gcj_mlc.c)
+AC_CONFIG_MACRO_DIR([m4])
 AC_CANONICAL_TARGET 
 AC_PREREQ(2.53)
 AC_REVISION($Revision: 1.51 $)
-------------- next part --------------
diff --git a/configure.ac b/configure.ac
index 0cc8574..3212d23 100644
--- a/configure.ac
+++ b/configure.ac
@@ -21,6 +21,7 @@ AC_INIT(gc,7.2alpha3,Hans.Boehm at hp.com)
     ## version must conform to [0-9]+[.][0-9]+(alpha[0-9]+)?
 AC_CONFIG_SRCDIR(gcj_mlc.c)
 AC_CONFIG_MACRO_DIR([m4])
+AC_CONFIG_AUX_DIR([build-aux])
 AC_CANONICAL_TARGET 
 AC_PREREQ(2.53)
 AC_REVISION($Revision: 1.51 $)


More information about the Gc mailing list