Re: #define warnings when using various autotools projects

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hello aaragon,
  indeed, you are pointing out a problem with the description of the
macro AX_PREFIX_CONFIG_H in the top of ax_prefix_config_h.m4 .

(I'm ccing the maintainer of autoconf-archive.cryp.to and two of the
three authors of the macro to report the problem to them.)

On Sun, May 18, 2008 at 12:25:36PM -0700, aaragon wrote:
> AC_INIT(config.h.in)
> AM_INIT_AUTOMAKE(xGA,0.1)
> AM_CONFIG_HEADER(config.h)
> AX_PREFIX_CONFIG_H(src/_config.h)

With current autoconf, the following seems more apropriate:

AC_INIT([xGA], [0.1], [bugs@xxxxxxxxxxx])
AM_INIT_AUTOMAKE([1.10])
AC_CONFIG_HEADERS([config.h])
AX_PREFIX_CONFIG_H
#...
AC_OUTPUT

Then:

mkdir m4 &&
cp ../autoconf-archive.cryp.to/ax_prefix_config_h.m4 m4/
aclocal -I m4 && autoheader && autoconf && ./configure

and voila, the configure output ends with

config.status: creating config.h
config.status: executing xga-config.h commands
config.status: creating xga-config.h - prefix XGA for config.h defines

(I have almost current m4 & Autoconf & Automake installed.)

OOPS!
I have tried again with the obsolete example you cite above and it
works.  aaragon, are you sure you have recent version of m4?  Old
versions had some nasty bugs.

Also, is your copy of ax_prefix_config_h.m4 correct?  Isn't it
garbled by  aweb browser?  You should download the tarball of
autoconf-archive, or use a similar feature, npasting from the URL
mentioned in this thread might be unsafe.

HTH,
	Stepan Kasal


_______________________________________________
Autoconf mailing list
Autoconf@xxxxxxx
http://lists.gnu.org/mailman/listinfo/autoconf

[Index of Archives]     [GCC Help]     [Kernel Discussion]     [RPM Discussion]     [Red Hat Development]     [Yosemite News]     [Linux USB]     [Samba]

  Powered by Linux