This is the mail archive of the binutils@sourceware.org mailing list for the binutils project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: Use modern AC_INIT in configure.in


On Tue, Jul 08, 2014 at 08:38:30AM -0700, H.J. Lu wrote:
> The old one has
> 
> changequote(,)dnl
> BFD_VERSION=`${srcdir}/../bfd/configure --version | sed -n -e '1s,.* ,,p'`
> changequote([,])dnl
> AM_INIT_AUTOMAKE(ld, ${BFD_VERSION})
> 
> When BFD_VERSION is changed, we only need to regenerate
> configure in bfd.  Can we make it to work with the new scheme?

You can, by using m4_esyscmd to extract the version from
bfd/configure.ac to set versions in other configure dirs, but that way
is a bit messy.  I wrote it like that at first, then saw that the
automake docs recommend using an m4 version file.

-- 
Alan Modra
Australia Development Lab, IBM


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]