This is the mail archive of the
automake@gnu.org
mailing list for the automake project.
Re: AM_INIT_AUTOMAKE([no-define]) vs. AC_PACKAGE_*
- From: Akim Demaille <akim at epita dot fr>
- To: Alexandre Duret-Lutz <duret_g at lrde dot epita dot fr>
- Cc: Ralf Corsepius <corsepiu at faw dot uni-ulm dot de>, Automake List <automake at gnu dot org>, autoconf at gnu dot org
- Date: 04 Feb 2002 10:31:10 +0100
- Subject: Re: AM_INIT_AUTOMAKE([no-define]) vs. AC_PACKAGE_*
- References: <1012725517.11137.335.camel@mccallum><2002-02-04-09-21-38+20370+duret_g@epita.fr>
| >>> "Ralf" == Ralf Corsepius <corsepiu@faw.uni-ulm.de> writes:
| Ralf> Hi,
| Ralf> Using the new AC_INIT syntax breaks AM_INIT_AUTOMAKE([no-define])
| Ralf> rsp. its triple-argument form AM_INIT_AUTOMAKE(,,no):
|
| Ralf> Given such kind of configure.ac
| Ralf> [..]
| Ralf> AC_INIT([foo],[0.1],[bar@foobar.com])
| Ralf> AM_INIT_AUTOMAKE([no-define])
| Ralf> [..]
| Ralf> AM_CONFIG_HEADER(config.h)
| Ralf> [..]
|
| Ralf> Using this, PACKAGE and VERSION will not be inserted into config.h,
| Ralf> however
|
| Ralf> PACKAGE_BUGREPORT,
| Ralf> PACKAGE_NAME,
| Ralf> PACKAGE_STRING,
| Ralf> PACKAGE_TARNAME,
| Ralf> PACKAGE_VERSION
|
| Ralf> will always be added to config.h.
|
| Ralf> This causes conflicts with other config-headers for packages which
| Ralf> * share config-headers either from neighboring config-subdirs or
| Ralf> external sources [1].
| Ralf> * import one or more of these defines from other packages' headers.
|
| This is really an Autoconf issue: that's AC_INIT which defines
| these symbols since 2.52g (prior versions don't do this).
|
| Automake's no-define applies only to the symbols that Automake
| defines (PACKAGE & VERSION). It can't undefine symbols defined
| elsewhere.
Correct. Thanks Alexandre for bringing this back to where it belongs.
I have a preliminary question: how come these packages have no problem
with HAVE_FOO clashes? How do they solve the very same issue in other
cases?