[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: AM_INIT_AUTOMAKE([no-define]) vs. AC_PACKAGE_*
From: |
Alexandre Duret-Lutz |
Subject: |
Re: AM_INIT_AUTOMAKE([no-define]) vs. AC_PACKAGE_* |
Date: |
Mon, 04 Feb 2002 09:21:37 +0100 |
User-agent: |
Gnus/5.090004 (Oort Gnus v0.04) Emacs/21.1 (i386-debian-linux-gnu) |
>>> "Ralf" == Ralf Corsepius <address@hidden> 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],address@hidden)
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.
[...]
--
Alexandre Duret-Lutz