[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: AC_INIT produces unexpected "PACKAGE" and "VERSION" strings in confi
From: |
Bob Friesenhahn |
Subject: |
Re: AC_INIT produces unexpected "PACKAGE" and "VERSION" strings in config.h |
Date: |
Tue, 5 Jan 2021 19:33:07 -0600 (CST) |
User-agent: |
Alpine 2.20 (GSO 67 2015-01-07) |
I am now able to answer my own question. The new form of
AM_INIT_AUTOMAKE adds this unwanted stuff if one does not pass
no-define as another option:
"By default this macro AC_DEFINE’s PACKAGE and VERSION. This can be
avoided by passing the no-define option (see List of Automake
options)"
I am not sure what the value of adding another redundant definition is
but it seems that is what Automake decided to do.
The problem is that I have a subordinate package which also uses
VERSION but the definition is not the same.
Bob
On Tue, 5 Jan 2021, Bob Friesenhahn wrote:
I am *still* working to update GraphicsMagick to support the 5-part AC_INIT
plus new-style AM_INIT_AUTOMAKE. I am using Autoconf 2.69 and Automake
1.16.3.
Something which is very much unwanted is now the generated config.h has added
these
/* Name of package */
#define PACKAGE "GraphicsMagick"
/* Version number of package */
#define VERSION "1.4.020210102"
These definitions are unexpected.
What produces these definitions and how can I get rid of them?
Bob
--
Bob Friesenhahn
bfriesen@simple.dallas.tx.us, http://www.simplesystems.org/users/bfriesen/
GraphicsMagick Maintainer, http://www.GraphicsMagick.org/
Public Key, http://www.simplesystems.org/users/bfriesen/public-key.txt